[switchyard-issues] [JBoss JIRA] (SWITCHYARD-611) BPEL Quickstart & SoapUI tool

Nick Cross (JIRA) jira-events at lists.jboss.org
Thu Jan 12 08:22:22 EST 2012


Nick Cross created SWITCHYARD-611:
-------------------------------------

             Summary: BPEL Quickstart & SoapUI tool
                 Key: SWITCHYARD-611
                 URL: https://issues.jboss.org/browse/SWITCHYARD-611
             Project: SwitchYard
          Issue Type: Bug
         Environment: Fedora 16
            Reporter: Nick Cross
             Fix For: 0.4


Working through the bpel-service quickstart (https://github.com/jboss-switchyard/quickstarts/tree/master/bpel-service) I import the wsdl from src/main/resources/wsdl to create the soap-ui project.

Using the sample request in src/test/resources/xml/soap-request.xml works fine but using the XML generated by SoapUI does not. The difference is:

SoapUI 4.0.1 generates


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:loan="http://example.com/loan-approval/loanService/">
   <soapenv:Header/>
   <soapenv:Body>
      <loan:request>
         <loan:firstName>?</loan:firstName>
         <loan:name>?</loan:name>
         <loan:amount>?</loan:amount>
      </loan:request>
   </soapenv:Body>
</soapenv:Envelope>

Compared to

src/test/resources/xml/soap-loanreq1.xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
                <ns1:request xmlns:ns1="http://example.com/loan-approval/loanService/">
                   <firstName>Fred</firstName>
                   <name>Bloggs</name>
                   <amount>100</amount>
                </ns1:request>
   </soapenv:Body>
</soapenv:Envelope>

Email conversation with Keith and Gary Brown - Keith said:
"
OK, I played with this a bit more.  We are not dropping the namespace definition in the SOAP Gateway.  Playing with things a bit, it appears that the BPEL process is expecting the loan request elements to have an empty namespace.  Generating the request from SoapUI correctly prefixes the element names with the namespace qualifier.   You can see in the request message in src/test/resources that the element names beneath <loan:request> are not namespace qualified and there is no default namespace defined.

@Gary - if this is a quick fix in the BPEL logic, we might want to patch it up.  If not, I can just update the quickstart instructions to tell users to copy in the test message into SoapUI.
"



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the switchyard-issues mailing list