users@jax-rpc.java.net

Problems with rpc/lit and doc/lit WSDL in Sun AS 8, cannot deploy

From: Merten Schumann <Merten.Schumann_at_asg.com>
Date: Tue, 12 Apr 2005 17:23:49 +0200

Hello,

I'm about to test different WSDL files with my web service (rpc/enc,
rpc/lit, doc/lit) in different containers (Sun, IBM, Apache). I do
create the WSDL with java2wsdl from Axis (see my thread "JAX-RPC mapping
file, really needed?") :-).

Things work fine for me in WebSphere.
But in Sun AS only the rpc/enc stuff works well. The other ones, rpc/lit
and doc/lit, cannot even be deployed.

For rpc/lit, I do get in server.log

INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_Threa
dID=11;|DPL5109: EJB - START of EJBC for
[RoSrapScriptExecServiceServlet_raw]
INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_Threa
dID=11;|Processing beans ...
INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=11
;| error: operation is not SOAP-encoded: "execute"|#]

For doc/lit I end up with

INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_Threa
dID=11;|DPL5109: EJBC - START of EJBC for
[RoSrapScriptExecServiceServlet_raw]
INFO|sun-appserver-pe8.1|javax.enterprise.system.tools.deployment|_Threa
dID=11;|Processing beans ...
INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=11
;| error: [failed to localize]
nometadatamodeler.error.documentStyleOperation(execute)|#]

As said, it works in WebSphere, so I think the WSDL files are not
completely wrong. I compared the Axis generated files to wscompile
generated ones. Well, I think Axis is not generating that much different
stuff. :-) What could be the reason for Sun AS to complain about my
WSDL? I attach the WSDL files at the end ...

Thanx for any help!
   Merten

rpc/enc
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:rochade"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="urn:rochade" xmlns:intf="urn:rochade"
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 created by Apache Axis version: 1.2RC3
Built on Feb 28, 2005 (10:15:14 EST)-->

   <wsdl:message name="isControlAreaUserRequiredRequest">

   </wsdl:message>

   <wsdl:message name="debugBounceTextRequest">

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

   </wsdl:message>

   <wsdl:message name="executeRequest">

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

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

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

   </wsdl:message>

   <wsdl:message name="debugBounceTextResponse">

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

   </wsdl:message>

   <wsdl:message name="executeResponse">

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

   </wsdl:message>

   <wsdl:message name="isControlAreaUserRequiredResponse">

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

   </wsdl:message>

   <wsdl:portType name="RoSrapScriptExecWebServicePortType">

      <wsdl:operation name="execute" parameterOrder="in0 in1 in2">

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

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

      </wsdl:operation>

      <wsdl:operation name="debugBounceText" parameterOrder="in0">

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

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

      </wsdl:operation>

      <wsdl:operation name="isControlAreaUserRequired">

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

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

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="RoSrapScriptExecWebServicePortSoapBinding"
type="impl:RoSrapScriptExecWebServicePortType">

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

      <wsdl:operation name="execute">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="executeRequest">

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

         </wsdl:input>

         <wsdl:output name="executeResponse">

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

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="debugBounceText">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="debugBounceTextRequest">

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

         </wsdl:input>

         <wsdl:output name="debugBounceTextResponse">

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

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="isControlAreaUserRequired">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="isControlAreaUserRequiredRequest">

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

         </wsdl:input>

         <wsdl:output name="isControlAreaUserRequiredResponse">

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

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="RoSrapScriptExecWebService">

      <wsdl:port
binding="impl:RoSrapScriptExecWebServicePortSoapBinding"
name="RoSrapScriptExecWebServicePort">

         <wsdlsoap:address location="REPLACE_WITH_ACTUAL_URL"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>

doc/lit
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:rochade"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="urn:rochade" xmlns:intf="urn:rochade"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2RC3
Built on Feb 28, 2005 (10:15:14 EST)-->
 <wsdl:types>
  <schema elementFormDefault="qualified" targetNamespace="urn:rochade"
xmlns="http://www.w3.org/2001/XMLSchema">
   <element name="in0" type="xsd:string"/>
   <element name="in1" type="xsd:string"/>
   <element name="in2" type="xsd:string"/>
   <element name="executeReturn" type="xsd:string"/>
   <element name="in3" type="xsd:string"/>
   <element name="debugBounceTextReturn" type="xsd:string"/>
   <element name="isControlAreaUserRequiredReturn" type="xsd:string"/>
  </schema>
 </wsdl:types>

   <wsdl:message name="isControlAreaUserRequiredRequest">

   </wsdl:message>

   <wsdl:message name="debugBounceTextRequest">

      <wsdl:part element="impl:in3" name="in0"/>

   </wsdl:message>

   <wsdl:message name="executeRequest">

      <wsdl:part element="impl:in0" name="in0"/>

      <wsdl:part element="impl:in1" name="in1"/>

      <wsdl:part element="impl:in2" name="in2"/>

   </wsdl:message>

   <wsdl:message name="debugBounceTextResponse">

      <wsdl:part element="impl:debugBounceTextReturn"
name="debugBounceTextReturn"/>

   </wsdl:message>

   <wsdl:message name="executeResponse">

      <wsdl:part element="impl:executeReturn" name="executeReturn"/>

   </wsdl:message>

   <wsdl:message name="isControlAreaUserRequiredResponse">

      <wsdl:part element="impl:isControlAreaUserRequiredReturn"
name="isControlAreaUserRequiredReturn"/>

   </wsdl:message>

   <wsdl:portType name="RoSrapScriptExecWebServicePortType">

      <wsdl:operation name="execute" parameterOrder="in0 in1 in2">

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

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

      </wsdl:operation>

      <wsdl:operation name="debugBounceText" parameterOrder="in0">

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

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

      </wsdl:operation>

      <wsdl:operation name="isControlAreaUserRequired">

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

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

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="RoSrapScriptExecWebServicePortSoapBinding"
type="impl:RoSrapScriptExecWebServicePortType">

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

      <wsdl:operation name="execute">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="executeRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="executeResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="debugBounceText">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="debugBounceTextRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="debugBounceTextResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="isControlAreaUserRequired">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="isControlAreaUserRequiredRequest">

            <wsdlsoap:body use="literal"/>

         </wsdl:input>

         <wsdl:output name="isControlAreaUserRequiredResponse">

            <wsdlsoap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="RoSrapScriptExecWebService">

      <wsdl:port
binding="impl:RoSrapScriptExecWebServicePortSoapBinding"
name="RoSrapScriptExecWebServicePort">

         <wsdlsoap:address location="REPLACE_WITH_ACTUAL_URL"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>