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 » SOAP Request problem

Post new topic  Reply to topic
 SOAP Request problem « View previous topic :: View next topic » 
Author Message
wmqstankela
PostPosted: Tue May 24, 2016 5:39 am    Post subject: SOAP Request problem Reply with quote

Voyager

Joined: 29 Feb 2016
Posts: 94

Hi all,

I have msg flow with soap request node. When I call this web service with soapUI i get this responce
Code:

<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 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>
      <issueWorkOrderFault /">
         <exception>
            <timestamp>2016-05-24T14:15:23</timestamp>
            <resultingState>1001</resultingState>
            <description>Invalid request.</description>
            <innerException>
               <description>Number of occurence of SourceSystem is not valid.</description>
            </innerException>
         </exception>
      </issueWorkOrderFault>
   </soapenv:Body>
</soapenv:Envelope>


But when i call it from SOAP Request node with the same request, i get error:
Code:
<ParserException>
                     <File>F:\build\slot1\S900_P\src\WebServices\WSLibrary\ImbSOAPParser.cpp</File>
                     <Line>2136</Line>
                     <Function>ImbSOAPParser::createSoapShapedTree</Function>
                     <Type/>
                     <Name/>
                     <Label/>
                     <Catalog>BIPmsgs</Catalog>
                     <Severity>3</Severity>
                     <Number>3614</Number>
                     <Text>problem creating SOAP tree from bitstream</Text>
                     <ParserException>
                        <File>F:\build\slot1\S900_P\src\WebServices\WSLibrary\ImbSOAPParser.cpp</File>
                        <Line>1865</Line>
                        <Function>ImbSOAPParser::createSoapShapedTree</Function>
                        <Type/>
                        <Name/>
                        <Label/>
                        <Catalog>BIPmsgs</Catalog>
                        <Severity>3</Severity>
                        <Number>3610</Number>
                        <Text>expecting response to previous request</Text>
                        <Insert>
                           <Type>5</Type>
                           <Text>issueWorkOrderFault</Text>
                        </Insert>
                        <Insert>
                           <Type>5</Type>
                           <Text>input</Text>
                        </Insert>
                        <Insert>
                           <Type>5</Type>
                           <Text>issueWorkOrder</Text>
                        </Insert>
                        <Insert>
                           <Type>5</Type>
                           <Text>WorkOrderTrackingAndManagementBinding</Text>
                        </Insert>
                     </ParserException>


Message goes to out terminal:


Code:
( ['SOAPRoot' : 0x2fa6c740]
  (0x01000000:Name  ):Properties         = ( ['SOAPPROPERTYPARSER' : 0x313fd6d0]
    (0x03000000:NameValue):MessageSet             = '' (CHARACTER)
    (0x03000000:NameValue):MessageType            = '' (CHARACTER)
    (0x03000000:NameValue):MessageFormat          = '' (CHARACTER)
    (0x03000000:NameValue):Encoding               = 546 (INTEGER)
    (0x03000000:NameValue):CodedCharSetId         = 1208 (INTEGER)
    (0x03000000:NameValue):Transactional          = FALSE (BOOLEAN)
    (0x03000000:NameValue):Persistence            = FALSE (BOOLEAN)
    (0x03000000:NameValue):CreationTime           = GMTTIMESTAMP '2016-05-24 13:25:53.432999' (GMTTIMESTAMP)
    (0x03000000:NameValue):ExpirationTime         = -1 (INTEGER)
    (0x03000000:NameValue):Priority               = 0 (INTEGER)
    (0x03000000:NameValue):ReplyIdentifier        = X'000000000000000000000000000000000000000000000000' (BLOB)
    (0x03000000:NameValue):ReplyProtocol          = 'SOAP-AXIS2' (CHARACTER)
    (0x03000000:NameValue):Topic                  = NULL
    (0x03000000:NameValue):ContentType            = 'text/xml;charset=utf-8' (CHARACTER)
    (0x03000000:NameValue):IdentitySourceType     = '' (CHARACTER)
    (0x03000000:NameValue):IdentitySourceToken    = '' (CHARACTER)
    (0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
    (0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
    (0x03000000:NameValue):IdentityMappedType     = '' (CHARACTER)
    (0x03000000:NameValue):IdentityMappedToken    = '' (CHARACTER)
    (0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
    (0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
  )
  (0x01000000:Name  ):HTTPResponseHeader = ( ['WSRSPHDR' : 0x300b3760]
    (0x03000000:NameValue):X-Original-HTTP-Status-Line = 'HTTP/1.1 200 OK' (CHARACTER)
    (0x03000000:NameValue):X-Original-HTTP-Status-Code = 200 (INTEGER)
    (0x03000000:NameValue):Server                      = 'Apache-Coyote/1.1' (CHARACTER)
    (0x03000000:NameValue):Content-Type                = 'text/xml;charset=utf-8' (CHARACTER)
    (0x03000000:NameValue):Content-Length              = '699' (CHARACTER)
    (0x03000000:NameValue):Date                        = 'Tue, 24 May 2016 13:25:53 GMT' (CHARACTER)
  )
  (0x01000000:Folder):SOAP               =


and I can't see SOAP message. Help please

Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue May 24, 2016 5:42 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Well, this doesn't make any sense
Code:
   <issueWorkOrderFault /">


But otherwise the error is very clear. It says the message you are getting back does not match the WSDL. And where in the message it fails to match the WSDL.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
wmqstankela
PostPosted: Tue May 24, 2016 5:43 am    Post subject: Reply with quote

Voyager

Joined: 29 Feb 2016
Posts: 94

namespace is too long...it's ok
Back to top
View user's profile Send private message
wmqstankela
PostPosted: Tue May 24, 2016 5:45 am    Post subject: Reply with quote

Voyager

Joined: 29 Feb 2016
Posts: 94

Code:
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 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>
      <out7:issueWorkOrderFault xmlns:out7="http://www.example.org/services/ResourceDomain/WorkforceManagement/WorkOrderTrackingAndManagement/">
         <exception>
            <timestamp>2016-05-24T14:15:23</timestamp>
            <resultingState>1001</resultingState>
            <description>Invalid request.</description>
            <innerException>
               <description>Number of occurence of SourceSystem is not valid.</description>
            </innerException>
         </exception>
      </out7:issueWorkOrderFault>
   </soapenv:Body>
</soapenv:Envelope>
Back to top
View user's profile Send private message
wmqstankela
PostPosted: Tue May 24, 2016 5:52 am    Post subject: Reply with quote

Voyager

Joined: 29 Feb 2016
Posts: 94

wsdl
Code:
<wsdl:types>
      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         targetNamespace="http://www.example.org/services/ResourceDomain/WorkforceManagement/WorkOrderTrackingAndManagement/"
         xmlns:Q1="http://www.example.org/services/messaging/ResourceDomain/WorkforceManagement/WorkOrderTrackingAndManagement"
         xmlns:Q2="http://www.example.org/services/messaging/common" xmlns:Q3="http://www.example.org/data/CommonBusinessEntitiesDomain/ProjectASE/WorkOrderASE">
            <xsd:import
            schemaLocation="../../../../../Messaging/common/Exception/ExceptionMessage.xsd"
            namespace="http://www.example.org/services/messaging/common"></xsd:import>
         <xsd:import
            schemaLocation="../../../../Messaging/ResourceDomain/WorkforceManagement/WorkOrderTrackingAndManagement/WorkOrderTrackingAndManagementServiceTypes.xsd"
            namespace="http://www.example.org/services/messaging/ResourceDomain/WorkforceManagement/WorkOrderTrackingAndManagement"></xsd:import>
         <xsd:element name="issueWorkOrder">
            <xsd:complexType>
               <xsd:sequence>
                  <xsd:element name="issueWorkOrder"
                     type="Q1:IssueWorkOrderRequest">
                  </xsd:element>
               </xsd:sequence>
            </xsd:complexType>
         </xsd:element>
         <xsd:element name="issueWorkOrderResponse">
            <xsd:complexType>
               <xsd:sequence>
                  <xsd:element name="issueWorkOrderResponse"
                     type="Q1:IssueWorkOrderResponse">
                  </xsd:element>
               </xsd:sequence>
            </xsd:complexType>
         </xsd:element>
         <xsd:element name="issueWorkOrderFault" type="Q2:ExceptionMessage"/>
      </xsd:schema>
   </wsdl:types>
  <wsdl:message name="issueWorkOrderRequest">
    <wsdl:part element="tns:issueWorkOrder" name="issueWorkOrderParameters"/>
  </wsdl:message>
  <wsdl:message name="issueWorkOrderResponse">
    <wsdl:part element="tns:issueWorkOrderResponse" name="issueWorkOrderResult"/>
  </wsdl:message>
  <wsdl:message name="issueWorkOrderFault">
     <wsdl:part name="issueWorkOrderFault" element="tns:issueWorkOrderFault"></wsdl:part>
  </wsdl:message>
  <wsdl:portType name="WorkOrderTrackingAndManagement">
    <wsdl:operation name="issueWorkOrder">
      <wsdl:input message="tns:issueWorkOrderRequest"/>
      <wsdl:output message="tns:issueWorkOrderResponse"/>
            <wsdl:fault name="fault" message="tns:issueWorkOrderFault"></wsdl:fault>
        </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="WorkOrderTrackingAndManagementBinding" type="tns:WorkOrderTrackingAndManagement">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="issueWorkOrder">
      <soap:operation soapAction="http://www.example.org/services/ResourceDomain/WorkforceManagement/WorkOrderTrackingAndManagement/WorkOrderTrackingAndManagementService/NewOperation"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="WorkOrderTrackingAndManagementService">
    <wsdl:port binding="tns:WorkOrderTrackingAndManagementBinding" name="WorkOrderTrackingAndManagementServiceSOAP">
      <soap:address location="http://www.example.org/"/>
    </wsdl:port>
  </wsdl:service>
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue May 24, 2016 7:43 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Do normal broker troubleshooting to find out where the issue is.
_________________
chmod -R ugo-wx /
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 » SOAP Request problem
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.