ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » stripping soap headers and construct a message

Post new topic  Reply to topic
 stripping soap headers and construct a message « View previous topic :: View next topic » 
Author Message
vignesh.gopal
PostPosted: Tue Jan 24, 2006 8:45 am    Post subject: stripping soap headers and construct a message Reply with quote

Novice

Joined: 23 Dec 2002
Posts: 24

Hi,

I have a issue which i would advice on.
Thanks in advance.

I have called a webservice and i get a response from the service.
I would like to constrcuct a new XML output from the response.

Please find below the response and the code which i am tryin to generate,however there are errors mentioning that the XML message cannot be created.

**********************************************
**** response ***********************
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:directCreditAmountResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://soap.v200.ps.sea.omip.mobile.siemens.com">
<return href="#id0"/>
</ns1:directCreditAmountResponse>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:PaymentResponse" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://soap.v200.ps.sea.omip.mobile.siemens.com">
<status xsi:type="xsd:string">50:9</status>
<requestNumber xsi:type="xsd:int">22123</requestNumber>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>


my code to create a message
Set OutputRoot.HTTPResponseHeader = null;
CALL CopyMessageHeaders();

-- Declare the XML namespaces we will be using
DECLARE mySoapNS NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE myXSI NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
DECLARE myXSD NAMESPACE 'http://www.w3.org/2001/XMLSchema';
DECLARE ns1 NAMESPACE 'http://soap.v200.ps.sea.omip.mobile.siemens.com';


-- Add an XML declaration to the message
SET OutputRoot.XML.(XML.XmlDecl) = '';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Encoding) = 'UTF-8';

Declare messageType Character;
If InputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.ns1:directCreditAmountResponse IS NOT NULL Then
Set messageType = 'directCreditAmountResponse';
End IF;
Set OutputRoot.XML.response.messageType = messageType;
Set OutputRoot.XML.response.status = InputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.multiRef.status;
Set OutputRoot.XML.response.transactionID = InputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.multiRef.requestNumber;
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Jan 24, 2006 10:35 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Your response should be a SOAP/HTTP response instead of plain XML response right?
In that case you need to put your XML tags inside the SOAP body rather than directly in your OutputRoot I guess.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
hemendra123
PostPosted: Tue Jan 24, 2006 11:23 am    Post subject: Reply with quote

Novice

Joined: 30 May 2005
Posts: 20

Assuming that you are trying to translate the SOAP reponse message, XMLNS domain into XML message try with this code


...............
CALL CopyMessageHeaders();
-- Add an XML declaration to the message
SET OutputRoot.XML.(XML.XmlDecl) = '';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Encoding) = 'UTF-8';

DECLARE refTemp REFERENCE TO InputRoot.XMLNS.*:Envelope.*:Body;

CREATE LASTCHILD OF OutputRoot.XML.response NAME(FIELDNAME(refTemp.(XML.Element)*[1]));
SET OutputRoot.XML.response.{FIELDNAME(refTemp.(XML.Element)*[1])} = refTemp.(XML.Element)*[1];
Set OutputRoot.XML.response.status = refTemp.multiRef.status;
Set OutputRoot.XML.response.transactionID = refTemp.multiRef.requestNumber;


............................

Best of Luck.
_________________
Hemendr
Back to top
View user's profile Send private message Send e-mail
ydsk
PostPosted: Tue Jan 24, 2006 3:33 pm    Post subject: Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

As Vennela pointed out , the issue is with this line of code :

Set OutputRoot.HTTPResponseHeader = null;

OutputRoot can't have a direct child by name HTTPResponseHeader.

It can be like the following or anywhere under Envelope:

Set OutputRoot.XML.soapenv:Envelope.HTTPResponseHeader = null;

Thanks.
ydsk.
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Jan 25, 2006 1:16 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

ydsk wrote:

Quote:
OutputRoot can't have a direct child by name HTTPResponseHeader


This is wrong. After an HTTPRequestNode, you will always have a HTTPResponseHeader. However the original code was:

Code:
Set OutputRoot.HTTPResponseHeader = null;
CALL CopyMessageHeaders();


In this case the SET is placed before the CopyMessageHeaders, when (assuming removal of the response header is what is needed) it should be after the call to CopyMessageHeaders.

vignesh.gopal, I think I understand what you are trying to do. You have got a soap response back in the XMLNS domain, and are trying to convert some bit of it to the XML domain. Is this right?

Can you post two things:

1: the output of a Trace node after the HTTRequestNode that traces ${Root}

2: You say: "however there are errors mentioning that the XML message cannot be created". Which node generates these messages, an MQOutput node?. Can you post the actual error messages.

Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
vignesh.gopal
PostPosted: Thu Jan 26, 2006 10:06 am    Post subject: HTTP/1.1 500 Internal Server Error' Reply with quote

Novice

Joined: 23 Dec 2002
Posts: 24

Thanks a lot guys.

The discussion was really informative.
Another query.

I have constructed the soap message and when i call a webservice i receive a response as below...
(
(0x01000000):Properties = (
(0x03000000):MessageSet = ''
(0x03000000):MessageType = ''
(0x03000000):MessageFormat = ''
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 1208
(0x03000000):Transactional = FALSE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2006-01-26 17:55:29.234'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
)
(0x01000000):HTTPResponseHeader = (
(0x03000000):X-Original-HTTP-Status-Line = 'HTTP/1.1 500 Internal Server Error'
(0x03000000):X-Original-HTTP-Status-Code = 500
(0x03000000):Server = 'Sun-Java-System-Application-Server/7 2004Q2'
(0x03000000):Date = 'Thu, 26 Jan 2006 20:52:23 GMT'
(0x03000000):Content-type = 'text/xml; charset=utf-8'
(0x03000000):Connection = 'close'
)
(0x01000000):BLOB = (
(0x03000000):UnknownParserName = ''
(0x03000000):BLOB = X'3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e0a3c736f6170656e763a456e76656c6f706520786d6c6e733a736f6170656e763d22687474703a2f2f736368656d61732e786d6c736f61702e6f72672f736f61702f656e76656c6f70652f2220786d6c6e733a7873643d22687474703a2f2f7777772e77332e6f72672f323030312f584d4c536368656d612220786d6c6e733a7873693d22687474703a2f2f7777772e77332e6f72672f323030312f584d4c536368656d612d696e7374616e6365223e0a203c736f6170656e763a426f64793e0a20203c736f6170656e763a4661756c743e0a2020203c6661756c74636f64653e736f6170656e763a5365727665722e75736572457863657074696f6e3c2f6661756c74636f64653e0a2020203c6661756c74737472696e673e6a6176612e6c616e672e4e756d626572466f726d6174457863657074696f6e3a20466f7220696e70757420737472696e673a202671756f743b3230303630313236313634352671756f743b3c2f6661756c74737472696e673e0a2020203c64657461696c3e0a202020203c6e73313a737461636b547261636520786d6c6e733a6e73313d22687474703a2f2f786d6c2e6170616368652e6f72672f617869732f223e6a6176612e6c616e672e4e756d626572466f726d6174457863657074696f6e3a20466f7220696e70757420737472696e673a202671756f743b3230303630313236313634352671756f743b0a096174206f72672e6170616368652e617869732e656e636f64696e672e7365722e53696d706c65446573657269616c697a65722e6f6e456e64456c656d656e742853696d706c65446573657269616c697a65722e6a6176613a323138290a096174206f72672e6170616368652e617869732e656e636f64696e672e446573657269616c697a6572496d706c2e656e64456c656d656e7428446573657269616c697a6572496d706c2e6a6176613a353334290a096174206f72672e6170616368652e617869732e656e636f64696e672e446573657269616c697a6174696f6e436f6e74657874496d706c2e656e64456c656d656e7428446573657269616c697a6174696f6e436f6e74657874496d706c2e6a6176613a393631290a096174206f72672e6170616368652e617869732e6d6573736167652e534158324576656e745265636f726465722e7265706c617928534158324576656e745265636f726465722e6a6176613a323036290a096174206f72672e6170616368652e617869732e6d6573736167652e4d657373616765456c656d656e742e7075626c697368546f48616e646c6572284d657373616765456c656d656e742e6a6176613a363933290a096174206f72672e6170616368652e617869732e6d6573736167652e525043456c656d656e742e646573657269616c697a6528525043456c656d656e742e6a6176613a323231290a096174206f72672e6170616368652e617869732e6d6573736167652e525043456c656d656e742e676574506172616d7328525043456c656d656e742e6a6176613a333233290a096174206f72672e6170616368652e617869732e70726f7669646572732e6a6176612e52504350726f76696465722e70726f636573734d6573736167652852504350726f76696465722e6a6176613a313931290a096174206f72672e6170616368652e617869732e70726f7669646572732e6a6176612e4a61766150726f76696465722e696e766f6b65284a61766150726f76696465722e6a6176613a333332290a096174206f72672e6170616368652e617869732e737472617465676965732e496e766f636174696f6e53747261746567792e766973697428496e766f636174696f6e53747261746567792e6a6176613a3731290a096174206f72672e6170616368652e617869732e53696d706c65436861696e2e646f5669736974696e672853696d706c65436861696e2e6a6176613a313536290a096174206f72672e6170616368652e617869732e53696d706c65436861696e2e696e766f6b652853696d706c65436861696e2e6a6176613a313236290a096174206f72672e6170616368652e617869732e68616e646c6572732e736f61702e534f4150536572766963652e696e766f6b6528534f4150536572766963652e6a6176613a343639290a096174206f72672e6170616368652e617869732e7365727665722e417869735365727665722e696e766f6b6528417869735365727665722e6a6176613a333135290a096174206f72672e6170616368652e617869732e7472616e73706f72742e687474702e41786973536572766c65742e646f506f73742841786973536572766c65742e6a6176613a373636290a096174206a617661782e736572766c65742e687474702e48747470536572766c65742e736572766963652848747470536572766c65742e6a6176613a373630290a096174206f72672e6170616368652e617869732e7472616e73706f72742e687474702e41786973536572766c6574426173652e736572766963652841786973536572766c6574426173652e6a6176613a333339290a096174206a617661782e736572766c65742e687474702e48747470536572766c65742e736572766963652848747470536572766c65742e6a6176613a383533290a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e646172645772617070657256616c76652e696e766f6b65536572766c657453657276696365285374616e646172645772617070657256616c76652e6a6176613a373230290a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e646172645772617070657256616c76652e696e766f6b65285374616e646172645772617070657256616c76652e6a6176613a333039290a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e652e696e766f6b65285374616e64617264506970656c696e652e6a6176613a353035290a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264436f6e7465787456616c76652e696e766f6b65285374616e64617264436f6e7465787456616c76652e6a6176613a323132290a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e652e696e766f6b65285374616e64617264506970656c696e652e6a6176613a353035290a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264486f737456616c76652e696e766f6b65285374616e64617264486f737456616c76652e6a6176613a323033290a096174206f72672e6170616368652e636174616c696e612e636f72652e5374616e64617264506970656c696e652e696e766f6b65285374616e64617264506970656c696e652e6a6176613a353035290a09617420636f6d2e69706c616e65742e6961732e7765622e636f6e6e6563746f722e6e736170692e4e5341504950726f636573736f722e70726f63657373284e5341504950726f636573736f722e6a6176613a313538290a09617420636f6d2e69706c616e65742e6961732e7765622e576562436f6e7461696e65722e7365727669636528576562436f6e7461696e65722e6a6176613a383530290a3c2f6e73313a737461636b54726163653e0a2020203c2f64657461696c3e0a20203c2f736f6170656e763a4661756c743e0a203c2f736f6170656e763a426f64793e0a3c2f736f6170656e763a456e76656c6f70653e'
)
)



This has been driving me nuts as i have been reiterating the piece of code and when understanding the error every just seems to mention "internal server" error.

Please advice the occurance of this error.
cheers
Vignesh
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Jan 26, 2006 10:47 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

This piece of ESQL code worked for me.
NOTE: You have to drag your cursor to the right to see the code. I couldn't fix it.

Code:

DECLARE mySoapNS NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE myNS1 NAMESPACE 'http://lbs.com';
DECLARE myXSI NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
DECLARE myXSD NAMESPACE 'http://www.w3.org/2001/XMLSchema';
-- Add an XML declaration to the message
SET OutputRoot.XMLNS.(XML.XmlDecl) = '';
SET OutputRoot.XMLNS.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XMLNS.(XML.XmlDecl).(XML.Encoding) = 'UTF-8';

SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:"SOAP-ENV" = 'http://schemas.xmlsoap.org/soap/envelope/' ;
SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:xsi = 'http://www.w3.org/2001/XMLSchema-instance' ;
SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:xsd = 'http://www.w3.org/2001/XMLSchema' ;


SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myNS1:sayHello.(XML.NamespaceDecl)xmlns:ns1 = 'http://lbs.com';
SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myNS1:sayHello.(XML.NamespaceDecl)mySoapNS:encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/';

SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myNS1:sayHello.Name ='name';
SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myNS1:sayHello.Name.(XML.Attribute)myXSI:type = 'xsd:string';



This is my WSDL


Code:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://lbs.com" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://lbs.com" xmlns:intf="http://lbs.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <wsdl:types/>

   <wsdl:message name="sayHelloRequest">

      <wsdl:part name="Name" type="xsd:string"/>

   </wsdl:message>

   <wsdl:message name="sayHelloResponse">

      <wsdl:part name="sayHelloReturn" type="xsd:string"/>

   </wsdl:message>

   <wsdl:portType name="HelloWorldWS">

      <wsdl:operation name="sayHello" parameterOrder="Name">

         <wsdl:input message="impl:sayHelloRequest" name="sayHelloRequest"/>

         <wsdl:output message="impl:sayHelloResponse" name="sayHelloResponse"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="HelloWorldWSSoapBinding" type="impl:HelloWorldWS">

      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="sayHello">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="sayHelloRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://lbs.com" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="sayHelloResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://lbs.com" use="encoded"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="HelloWorldWSService">

      <wsdl:port binding="impl:HelloWorldWSSoapBinding" name="HelloWorldWS">

         <wsdlsoap:address location="http://localhost:9081/JavaWSProj/services/HelloWorldWS"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>


Hope this helps. I ripped this code from one of the redbooks.
If you have problem, post your ESQL and maybe we can help.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vignesh.gopal
PostPosted: Thu Jan 26, 2006 2:47 pm    Post subject: Reply with quote

Novice

Joined: 23 Dec 2002
Posts: 24

Thanks for the response.
I am attaching my ESQL as i could not fix as yet.

DECLARE mySoapNS NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE myPayment NAMESPACE 'http://abc.com';
DECLARE myXSI NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
DECLARE myXSD NAMESPACE 'http://www.w3.org/2001/XMLSchema';


-- Add an XML declaration to the message
SET OutputRoot.XMLNS.(XML.XmlDecl) = 'XML';
SET OutputRoot.XMLNS.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XMLNS.(XML.XmlDecl).(XML.Encoding) = 'UTF-8';

-- Create the SOAP Envelope
SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:"SOAP-ENV" =
'http://schemas.xmlsoap.org/soap/envelope/' ;
SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:xsi =
'http://www.w3.org/2001/XMLSchema-instance' ;
SET OutputRoot.XMLNS.mySoapNS:Envelope.(XML.NamespaceDecl)xmlns:xsd =
'http://www.w3.org/2001/XMLSchema' ;

SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myPayment:reserve.(XML.NamespaceDecl)xmlns:payment
= 'http://abc.com';

I ran a flow with a trace.
I tested using a soap message already present and the one which my esql builds and i noticed a change in the trace...

My esql trace is below
(0x01000010):XMLNS = (
(0x05000018): = (
(0x02000000): = 'XML'
(0x06000011): = '1.0'
(0x06000012): = 'UTF-8'
)
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Envelope = (
(0x07000012)xmlns:SOAP-ENV = 'http://schemas.xmlsoap.org/soap/envelope/'
(0x07000012)xmlns:xsi = 'http://www.w3.org/2001/XMLSchema-instance'
(0x07000012)xmlns:xsd = 'http://www.w3.org/2001/XMLSchema'
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x01000000)http://abc.com:reserve = (
(0x07000012)xmlns:payment = 'http://abc.com'


below is the trace from an already built soap message.

(0x01000010):XML = (
(0x05000018):XML = (
(0x06000011): = '1.0'
(0x06000012): = 'UTF-8'
)
(0x06000002): = '
'
(0x01000000):SOAP-ENV:Envelope = (
(0x03000000):xmlns:SOAP-ENV = 'http://schemas.xmlsoap.org/soap/envelope/'
(0x03000000):xmlns:xsi = 'http://www.w3.org/2001/XMLSchema-instance'
(0x03000000):xmlns:xsd = 'http://www.w3.org/2001/XMLSchema'
(0x03000000):xmlns:payment = 'http://abc.com'
(0x02000000): = '
'
(0x01000000):SOAP-ENV:Body = (
(0x02000000): = '
'
(0x01000000):payment:reserve = (
(0x02000000): = '


Appreciate if we can solve.
I just i must be making a slight mistake however a thrid eye can surly spot the culprit.
cheers
Vick
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Jan 26, 2006 2:50 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
SET OutputRoot.XMLNS.mySoapNS:Envelope.mySoapNS:Body.myPayment:reserve.(XML.NamespaceDecl)xmlns:payment
= 'http://abc.com';

This is where your problem is I think.
Instead of writing your own statement, try to use Ctrl+Space Bar to get hints form the toolkit editor and see if that makes any difference.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vignesh.gopal
PostPosted: Thu Jan 26, 2006 2:57 pm    Post subject: Reply with quote

Novice

Joined: 23 Dec 2002
Posts: 24

Thanks for the response.
I have tried with that as well but in vain.

thanks
cheers
Vick
Back to top
View user's profile Send private message
mgk
PostPosted: Fri Jan 27, 2006 1:23 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

The response you posted above is an http 500 server error. The body of the message is:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>java.lang.NumberFormatException: For input string: &quot;200601261645&quot;</faultstring>
   <detail>
    <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">java.lang.NumberFormatException: For input string: &quot;200601261645&quot;
        at org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDeserializer.java:218)
        at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:534)
        at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:961)
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:206)
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:693)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:221)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:323)
        at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:191)
        at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:332)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
        at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:469)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:315)
        at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:766)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:309)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
        at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
        at com.iplanet.ias.web.WebContainer.service(WebContainer.java:850)
</ns1:stackTrace>
   </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>



This message will have left the Error terminal of the HttpRequestnode, not the OutputTerminal, which is why it is a BLOB. Clearly this numberFormatError needs to be corrected. Can you post your output when this is corected please.
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » stripping soap headers and construct a message
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.