Posted: Thu Jun 26, 2008 1:18 am Post subject: Create SOAP Fault with right namespace
Acolyte
Joined: 05 Jul 2007 Posts: 71
Hi guys,
I need some advice on how to create a SOAP Fault within the WMB 6.1 with the right namespace. I got an internal messageset with a namespace of www.mynamespace.com for example and within this namespace there are the request and the response objekt of my webservice.
Beneath that there is a second message definition file within my message set, which is made for the SOAP fault object in has the namespace http://schemas.xmlsoap.org/soap/envelope/. To use both namespaces I imported the second message definition file into my first one. Now the objects and elements are available for use in my first message definition.
So if now an backend occurs I parse this error string to my fault object and send it back the requesting webservice. As i can see the fault object is still in the wrong namespace, what causes PHP to think a fault is a valid return value. See response below: Any suggesteions on how to set the fault object into the right namespace.?
Response:
<NS1:Envelope xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope/"><NS1:Body><NS2:Fault xmlns:NS2="http://www.mynamespace.de/Middleware"><NS1:faultcode>SOAP-ENV:SERVER</NS1:faultcode><NS1:faultstring>An exception during backendprocessing TO TERMINAL 'out1' FINALIZE DEFAULT DELETE DEFAULT;</Text> _________________ There are two kinds of people in this world: people who s***, and Chuck Norris...
Posted: Thu Jun 26, 2008 4:54 am Post subject: Re: Create SOAP Fault with right namespace
Centurion
Joined: 04 Apr 2006 Posts: 104
Adreno wrote:
As i can see the fault object is still in the wrong namespace, what causes PHP to think a fault is a valid return value. See response below: Any suggesteions on how to set the fault object into the right namespace.?
I didn't understand what you mean by right namespace. This namespace is set when you have created the message set itself, right ? Are you saying that the output message has different namespace than what is set ?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum