Re: How to resolve SOAP differences

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



How do you construct your SOAP request and how do you send it? Have you
tried to use no NS at all? It could work, if the submitOrderBatch nodes does
not define any NS at all, but that depends on the WS server. Some WS servers
are a bit strict on the formal format of the SOAP message.

I also don't understand why you have no WSDL. Normaly this is where VS gets
the information about the web service methods, types and namespaces. Did you
try to use the WS-address and append "?WSDL". Some WS then offer the WSDL.
Just try with your web browser and see what happens.


"MR" <comconix@xxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:%23Nzop$KqFHA.2696@xxxxxxxxxxxxxxxxxxxxxxx
> you are probably right!
> i got rid of the http://tempuri.or, but how do i set the xmlns:ns1 in my
> webmethod? some attribute?
> i really appreciate your help on this. i have spent a lot of time and have
> gotten nowhere
> again thanks
> m
>
> "Stefan Misch" <stefan.misch@xxxxxxxxxxxxxxxxx> wrote in message
> news:%23fuk5PKqFHA.2952@xxxxxxxxxxxxxxxxxxxxxxx
>> Are you sure that it's the "soap" instead of the "SOAP-ENV" that causes
>> the problem? After all these are just local namespace prefixes for
>> "http://schemas.xmlsoap.org/soap/envelope/";. As long as this URI is the
>> same for the prefixes defined it should make no difference.
>>
>> I expect the problem could be the "submitOrderBatch" node. As "they"
>> define a NS with xmlns:ns1="urn:OrderOperations" but you define
>> xmlns="http://tempuri.org/";, which is another NS. So "your" node
>> sumbitOrderBatch is not the submitOrderBatch they expect.
>>
>> Just a thought...
>> Stefan
>>
>>
>> "MR" <comconix@xxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
>> news:%23kUl5iBqFHA.3404@xxxxxxxxxxxxxxxxxxxxxxx
>>> my soap messages to a remote site are failing. as far as i can tell the
>>> only differences between what my SOAP message looks liek and what they
>>> want are in the SOAP envelope
>>> SInce they don't have a wsdl doc i created a localhost site based on
>>> their DTD documetns.
>>>
>>> How do I configure my site (and client proxy) to match thier envelope?
>>>
>>> Any help would be greatly appreciated
>>> thanks
>>> mr
>>>
>>> WHAT THEY WANT
>>>
>>> <?xml version="1.0" encoding="UTF-8" ?>
>>> - <SOAP-ENV:Envelope
>>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
>>> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
>>> xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
>>> - <SOAP-ENV:Body>
>>> - <ns1:submitOrderBatch xmlns:ns1="urn:OrderOperations"
>>> SOAP-ENV:encodingStyle="http://xml.apache.org/xml-soap/literalxml";>
>>>
>>> WHAT I AM SENDING
>>> <?xml version="1.0" encoding="utf-8" ?>
>>> - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>>> - <soap:Body>
>>> - <orderBatchElement xmlns="http://tempuri.org/";>
>>> - <submitOrderBatch CustomerBatchID="58"
>>> xmlns="http://tempuri.org/submitOrderBatch.xs";>
>>>
>>>
>>
>>
>
>


.


Quantcast