Try converting the "<" to "&lt;" and the ">" to "&gt;" etc...

Thanks,
 
Nick Cipollina
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of phil walker
Sent: Thursday, February 16, 2006 10:17 PM
To: [email protected]
Subject: [U2] Soap Message To WebService

Can anyone tell me what I am doing wrong?

I have a programs which uses the SOAP Api functions to send data across
to a Web Service on Windows written in VB.NET. The Webmethod takes six
parameters, two of which, AuditXMLDoc, and DatabaseXMLDoc, are defined
as strings in the VB code. I want to be able to pass in these strings,
some 'XML', e.g.  AuditData = '<Audit>TestData</Audit>' and ConsumerData
= '<ConsumerNo>123</Consumer>' ...simplied for simplicity.

If the SOAP message is sent across with normal non-XML strings then the
Webservice works as expected, but as soon as I set the values of these
parameters to an XML string then it breaks. I suspect that the XML
within XML is confusing something somewhere.

Any help would be greatly appreciated.

Below is the soap message that is being sent with placeholders for the
two strings.

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://www.w3.org/2003/05/soap-envelope";>
  <soap:Body>
    <Generic xmlns="http://apollo/Exodusvb";>
       <EventSequenceNo>1140132735722</EventSequenceNo>
       <EventDescription>UPDATE</EventDescription>

<DatabaseModifiedDateTime>2006-02-17T12:32:15</DatabaseModifiedDateTime>
       <AuditXMLDoc>AuditData</AuditXMLDoc>
       <DatabaseXMLDoc>ConsumerData</DatabaseXMLDoc>

<SQLStoredProcedureName>usp_ExodusConsumerMaintenance</SQLStoredProcedur
eName>
    </Generic>
  </soap:Body>
</soap:Envelope>
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to