RKh
RKh

Reputation: 14159

SOAP request issue and difference in envelop

I have an old WSDL with SOAP structure as below:

enter image description here

The above one works fine from .NET as it is accepting Request object.

A new endpoint was provided to me which is throwing error in .NET when trying to pass Request object. The SOAP of this endpoint looks like this:

enter image description here

Does 'urn' in the second endpoint makes a difference ? In the first endpoint it is 'proc'.

Upvotes: 0

Views: 32

Answers (1)

Jason Alati
Jason Alati

Reputation: 245

The namespace prefix (e.g. urn: and prod:) are not important, per se, rather how they are defined elsewhere in the message payload.

For example, if both requests look like this:

<soapenv:Envelope xmlns:urn="http://your.namespace.here">

and

<soapenv:Envelope xmlns:proc="http://your.namespace.here">

Then they're structurally and functionally equivalent. Clients and producers can use whatever namespace prefixes they like. It's not uncommon for the client and producer (service implementation) to have different namespace prefixes, especially if they're different platforms (e.g. Java and .NET).

Upvotes: 1

Related Questions