|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
SOAP/JMS request timeout |
« View previous topic :: View next topic » |
Author |
Message
|
msedmak |
Posted: Wed May 16, 2007 3:34 am Post subject: SOAP/JMS request timeout |
|
|
Newbie
Joined: 15 May 2007 Posts: 3
|
Hello all,
I've managed to send a SOAP message to a input queue, i have a small broker application that simply takes that message, does something trivial, and then puts the message in a out queue.
My test client (generated in RAD 7.0) hangs and eventually times out, without getting a response...
my wsdl is:
Code: |
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:jms="http://schemas.xmlsoap.org/soap/jms" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.someone.hr/ncts" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NctsMessageSet" targetNamespace="http://www.someone.hr/ncts">
<wsdl:types>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:mrm="http://www.someone.hr/ncts" targetNamespace="http://www.someone.hr/ncts">
<xsd:complexType name="complexType1">
<xsd:sequence>
<xsd:element ref="mrm:mrnOut"/>
<xsd:element ref="mrm:mrnCopy"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="output" type="mrm:complexType1">
</xsd:element>
<xsd:element name="mrnOut" type="xsd:string"/>
<xsd:element name="mrnCopy" type="xsd:string"/>
</xsd:schema>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:mrm="http://www.someone.hr/ncts" targetNamespace="http://www.someone.hr/ncts">
<xsd:complexType name="mrn">
<xsd:sequence>
<xsd:element ref="mrm:mrn"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="message" type="mrm:mrn">
</xsd:element>
<xsd:element name="mrn" type="xsd:string"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="WsdlNewCategory_in">
<wsdl:part element="tns:message" name="message"/>
</wsdl:message>
<wsdl:message name="WsdlNewCategory_out">
<wsdl:part element="tns:output" name="output"/>
</wsdl:message>
<wsdl:portType name="NctsMessageSetPortType">
<wsdl:operation name="WsdlNewCategory">
<wsdl:input message="tns:WsdlNewCategory_in" name="WsdlNewCategory_message"/>
<wsdl:output message="tns:WsdlNewCategory_out" name="WsdlNewCategory_output"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="NctsMessageSetSOAP_JMS_Binding" type="tns:NctsMessageSetPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/jms"/>
<wsdl:operation name="WsdlNewCategory">
<soap:operation/>
<wsdl:input name="WsdlNewCategory_message">
<soap:body parts="message" use="literal"/>
</wsdl:input>
<wsdl:output name="WsdlNewCategory_output">
<soap:body parts="output" use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="NctsMrnSearchService">
<wsdl:port binding="tns:NctsMessageSetSOAP_JMS_Binding" name="JMSSOAPPort">
<soap:address location="jms:/queue?destination=SampleQueue&replyToDestination=SampleOutQueue&connectionFactory=SampleQCF&targetService=NctsMrnSearchService&initialContextFactory=com.sun.jndi.fscontext.RefFSContextFactory&jndiProviderURL=file:C:/JNDI-Directory"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
|
Notice the replyToDestination in the <soap:address>, i thought this was enough to ensure that the client gets the response?
Could anybody shed some light on this?
Thanks! |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 16, 2007 8:03 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
As you are sending a request from an appserver you need to make sure that the request either does not participate in a transaction or is committed even before you start waiting for the response.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
msedmak |
Posted: Wed May 16, 2007 11:58 pm Post subject: |
|
|
Newbie
Joined: 15 May 2007 Posts: 3
|
Pardon my ignorance, i don't think i understand.
I generated the client (RAD 7.0 jsp test client) which indeed runs in an appserver (WAS 6.1). The test client invokes the service and hangs.
Are the things that you are suggesting done on the client? If so, how?
Thanks in advance |
|
Back to top |
|
 |
jamesyu |
Posted: Thu May 17, 2007 7:14 am Post subject: |
|
|
Acolyte
Joined: 31 Jan 2007 Posts: 70
|
msedmak wrote: |
Pardon my ignorance, i don't think i understand.
I generated the client (RAD 7.0 jsp test client) which indeed runs in an appserver (WAS 6.1). The test client invokes the service and hangs.
Are the things that you are suggesting done on the client? If so, how?
Thanks in advance |
Got your private msg, and sent a reply with instructions. I plan to write an artical and get it published on IBM developreWorks to document the steps how to create a SOAP over JMS Web service in WMB and make a call from RAD -> WS client.... |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|