XmlSerializer with XSDObjectGenerator generated class
Tech-Archive recommends: Fix windows errors by optimizing your registry
Hi,
I need to send data to service via XML. This service gave me a schema
that you could find in
http://www.forum-datenaustausch.ch/fr/pharmacyinvoicerequest_400.xsd .
I generated objects with this nice tool XSDObjectGenerator.
When I tried to Serialize my data's, I had exception (InnerException)
"There was an error reflecting field '__prolog'.".
Here is my test code:
Dim fStream2 As New FileStream("C:\Temp\request.xml", FileMode.Create)
Dim request As New request()
request.invoice.detail.services.record_drugCollection.Add().amount =
111.112
Dim ser As New XmlSerializer(GetType(requestType))
ser.Serialize(fStream2, request)
Someone could help me?
Thanks.
Pascal
.
Relevant Pages
- Active Directory Error - The server is unwilling to process the request
... The server is unwilling to process the request ... The code below determines the location of the schema, ... Dim oConn 'As ADODB.Connection ... (microsoft.public.dotnet.general) - Parsing XML messgae in VB.Net
... Dim loginResponse As MSXML2.DOMDocument40 ... Private Function SendXmlRequest(ByRef xml As String) As MSXML2.DOMDocument40 ... ' Set known timeout values so we have more control over our request. ... ' that it was necessarily successful. ... (microsoft.public.dotnet.xml) - Parsing XML
... Dim loginResponse As MSXML2.DOMDocument40 ... Private Function SendXmlRequest(ByRef xml As String) As MSXML2.DOMDocument40 ... ' Set known timeout values so we have more control over our request. ... ' that it was necessarily successful. ... (microsoft.public.dotnet.xml) - Re: How to architect BizTalk calling a web service
... Request XML and a schema for the Response. ... (microsoft.public.biztalk.general) - Request.InputStream
... Page1.aspx and after processing i have to forward this updated request to ... The Page2.aspx gives me array in binData ONLY if i comment i.e. dont use ... the InputStream in to an XML doc already so i cannot using the InputStream to ... Dim xmlInDoc As New XmlDocument ... (microsoft.public.dotnet.framework.aspnet) |
|