7 Replies Latest reply on Mar 6, 2007 9:29 AM by Ronald van Kuijk

    Problem BPEL: SOAP Messages in a web service invocation

    Agustín Gañan Newbie

      Hello,
      I'm working with jBoss-4.0.5.GA, jbpm-bpel-1.1.Beta3 and jBossws.1.0.3.SP1.

      I have developed a simple bpel process with and invocation to a external web service. I deploy the process without problems but when I test it I have the following problem:
      The SOAP message to the web service is :

      <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
      <env:Header/>
      <env:Body>
      <defaultNS:CapitalCity xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:defaultNS='null'>ES</defaultNS:CapitalCity></env:Body></env:Envelope>
      

      And the external server answer me with this:
      <soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>
      <soap:Header/>
      <soap:Body>
      <env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
       <faultcode>soap:Server</faultcode>
       <faultstring>Error processing request: Invalid namespace 'null' expected 'http://www.oorsprong.org/websamples.countryinfo'</faultstring>
       <detail/>
      </env:Fault></soap:Body></soap:Envelope>
      


      The problem is that the process set the property 'DefaultNS' to null, but I don't know how to change this.

      How can I set the DefaultNS different from null?
      Maybe in the bpel-application.xml file?
      Should I use the latest version of jbossWS?

      The web service what I want to invoke is this
      http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso
      and the operation is CapitalCity.

      Any idea??
      Thank you in advance

      Agus