You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Aravind Chavar <ar...@hotmail.com> on 2002/08/05 19:11:28 UTC

jboss-2.4.6_Tomcat-4.0.3 + Axis

I have  jboss-2.4.6_Tomcat-4.0.3 and  axis beta2 integrated into this for  
webservices.
I am trying to make use of an EJB deployed on JBoss as my provider.WSDD file 
for my service is as follows....

------------------   WSDD - First -------------------------------------
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
	    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
	    xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" >
   <service name="OmniConnectCalcJbossEJB" provider="java:EJB">
      <parameter name="beanJndiName" value="OmiConnectCalcJndiName" />
      <parameter name="homeInterfaceName" 
value="OmniConnectCalcPackage.OmniConnectCalcHome" />
      <parameter name="remoteInterfaceName" 
value="OmniConnectCalcPackage.OmniConnectCalc" />
      <parameter name="allowedMethods" value="exec" />
      <parameter name="className" 
value="OmniConnectCalcPackage.OmniConnectCalcEJB" />
      <parameter name="jndiURL" value="jnp://localhost:1099" />
      <parameter name="jndiContextClass" 
value="org.jnp.interfaces.NamingContextFactory" />
   </service>
</deployment>

------------------ END WSDD - First -------------------------------------
---------------------- NOTE ---------------------------------------
Deploying the webservice using above deployment descriptors gives me 
following WSDL file.It may be noted that target namespace as in
the line  targetNamespace="http://framework.omniconnect.sungard.com">
is supposed to be "com.sungard.omniconnect.framework".I think the problem is 
due to not providing a bean mapping for my custom beans(I had faced this 
problem before).
---------------------- END NOTE ---------------------------------------

------------------   WSDL - First -------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions 
targetNamespace="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB" 
xmlns:tns2="http://ejb.javax" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:tns1="http://framework.omniconnect.sungard.com" 
xmlns:impl="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB-impl" 
xmlns:intf="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns="http://schemas.xmlsoap.org/wsdl/" 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
- <types>
- <schema xmlns="http://www.w3.org/2001/XMLSchema" 
targetNamespace="http://framework.omniconnect.sungard.com">
- <complexType name="OmniDataCalcInputBean">
- <complexContent>
- <extension base="tns1:OmniStandardInputBean">
- <sequence>
  <element name="planNum" nillable="true" type="xsd:string" />
  <element name="partId" nillable="true" 
type="tns1:OmniParticipantIdentifier" />
  <element name="textFile" nillable="true" type="xsd:string" />
  <element name="wks" nillable="true" type="intf:ArrayOf_xsd_double" />
  <element name="txs" nillable="true" type="intf:ArrayOf_xsd_string" />
  </sequence>
  </extension>
  </complexContent>
  </complexType>
- <complexType name="OmniStandardInputBean">
- <sequence>
  <element name="haloProfileEntry" nillable="true" type="xsd:string" />
  <element name="ddmsProfileEntry" nillable="true" type="xsd:string" />
  <element name="fileDigit" nillable="true" type="xsd:string" />
  <element name="userId" nillable="true" type="xsd:string" />
  <element name="wsId" nillable="true" type="xsd:string" />
  <element name="iniDirectory" nillable="true" type="xsd:string" />
  <element name="initIniFile" nillable="true" type="xsd:string" />
  <element name="PassWord" nillable="true" type="xsd:string" />
  </sequence>
  </complexType>
- <complexType name="OmniParticipantIdentifier">
- <sequence>
  <element name="partNum" nillable="true" type="xsd:string" />
  <element name="subPlan" nillable="true" type="xsd:string" />
  <element name="ext" nillable="true" type="xsd:string" />
  </sequence>
  </complexType>
  <element name="OmniDataCalcInputBean" nillable="true" 
type="tns1:OmniDataCalcInputBean" />
- <complexType name="OmniDataCalcOutputBean">
- <complexContent>
- <extension base="tns1:OmniStandardOutputBean">
- <sequence>
  <element name="planNum" nillable="true" type="xsd:string" />
  <element name="partId" nillable="true" 
type="tns1:OmniParticipantIdentifier" />
  <element name="textFile" nillable="true" type="xsd:string" />
  <element name="wks" nillable="true" type="intf:ArrayOf_xsd_double" />
  <element name="txs" nillable="true" type="intf:ArrayOf_xsd_string" />
  </sequence>
  </extension>
  </complexContent>
  </complexType>
- <complexType name="OmniStandardOutputBean">
- <sequence>
  <element name="traceMessage" nillable="true" type="xsd:string" />
  <element name="messages" nillable="true" 
type="intf:ArrayOf_tns1_OmniMessage" />
  <element name="hostVersion" nillable="true" type="xsd:string" />
  <element name="fileDigit" nillable="true" type="xsd:string" />
  <element name="halInfo" nillable="true" type="tns1:OmniHalogenInfo" />
  <element name="performanceTime" nillable="true" 
type="tns1:OmniPerformanceTimes" />
  <element name="Message" nillable="true" type="tns1:OmniMessage" />
  </sequence>
  </complexType>
- <complexType name="OmniMessage">
- <sequence>
  <element name="Message" nillable="true" type="xsd:string" />
  <element name="Object" nillable="true" type="xsd:string" />
  <element name="Id" nillable="true" type="xsd:string" />
  <element name="FileStatus" nillable="true" type="xsd:string" />
  <element name="ErrorLevel" type="xsd:int" />
  <element name="Origin" nillable="true" type="xsd:string" />
  </sequence>
  </complexType>
- <complexType name="OmniHalogenInfo">
- <sequence>
  <element name="name" nillable="true" type="xsd:string" />
  <element name="ipAddress" nillable="true" type="xsd:string" />
  <element name="processId" type="xsd:long" />
  <element name="threadId" type="xsd:long" />
  </sequence>
  </complexType>
- <complexType name="OmniPerformanceTimes">
- <sequence>
  <element name="host" type="xsd:long" />
  <element name="network" type="xsd:long" />
  <element name="client" type="xsd:long" />
  <element name="total" type="xsd:long" />
  </sequence>
  </complexType>
  <element name="OmniDataCalcOutputBean" nillable="true" 
type="tns1:OmniDataCalcOutputBean" />
  </schema>
- <schema xmlns="http://www.w3.org/2001/XMLSchema" 
targetNamespace="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB">
- <complexType name="ArrayOf_xsd_double">
- <complexContent>
- <restriction base="SOAP-ENC:Array">
  <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:double[]" />
  </restriction>
  </complexContent>
  </complexType>
- <complexType name="ArrayOf_xsd_string">
- <complexContent>
- <restriction base="SOAP-ENC:Array">
  <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]" />
  </restriction>
  </complexContent>
  </complexType>
- <complexType name="ArrayOf_tns1_OmniMessage">
- <complexContent>
- <restriction base="SOAP-ENC:Array">
  <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns1:OmniMessage[]" />
  </restriction>
  </complexContent>
  </complexType>
  </schema>
- <schema xmlns="http://www.w3.org/2001/XMLSchema" 
targetNamespace="http://ejb.javax">
- <complexType name="EJBHome" abstract="true">
  <sequence />
  </complexType>
  <element name="EJBHome" nillable="true" type="tns2:EJBHome" />
- <complexType name="Handle" abstract="true">
  <sequence />
  </complexType>
  <element name="Handle" nillable="true" type="tns2:Handle" />
- <complexType name="EJBObject" abstract="true">
  <sequence />
  </complexType>
  <element name="EJBObject" nillable="true" type="tns2:EJBObject" />
  </schema>
- <schema xmlns="http://www.w3.org/2001/XMLSchema" 
targetNamespace="http://www.w3.org/2001/XMLSchema">
  <element name="anyType" nillable="true" type="xsd:anyType" />
  </schema>
  </types>
- <wsdl:message name="isIdenticalRequest">
  <wsdl:part name="in0" type="tns2:EJBObject" />
  </wsdl:message>
  <wsdl:message name="getPrimaryKeyRequest" />
- <wsdl:message name="executeRequest">
  <wsdl:part name="in0" type="tns1:OmniDataCalcInputBean" />
  </wsdl:message>
- <wsdl:message name="getHandleResponse">
  <wsdl:part name="return" type="tns2:Handle" />
  </wsdl:message>
  <wsdl:message name="RemoveException" />
- <wsdl:message name="isIdenticalResponse">
  <wsdl:part name="return" type="xsd:boolean" />
  </wsdl:message>
  <wsdl:message name="getEJBHomeRequest" />
- <wsdl:message name="executeResponse">
  <wsdl:part name="return" type="tns1:OmniDataCalcOutputBean" />
  </wsdl:message>
  <wsdl:message name="removeRequest" />
- <wsdl:message name="getPrimaryKeyResponse">
  <wsdl:part name="return" type="xsd:anyType" />
  </wsdl:message>
  <wsdl:message name="removeResponse" />
- <wsdl:message name="getEJBHomeResponse">
  <wsdl:part name="return" type="tns2:EJBHome" />
  </wsdl:message>
  <wsdl:message name="getHandleRequest" />
- <wsdl:portType name="OmniConnectCalc">
- <wsdl:operation name="execute" parameterOrder="in0">
  <wsdl:input message="intf:executeRequest" />
  <wsdl:output message="intf:executeResponse" />
  </wsdl:operation>
- <wsdl:operation name="remove">
  <wsdl:input message="intf:removeRequest" />
  <wsdl:output message="intf:removeResponse" />
  <wsdl:fault name="RemoveException" message="intf:RemoveException" />
  </wsdl:operation>
- <wsdl:operation name="getEJBHome">
  <wsdl:input message="intf:getEJBHomeRequest" />
  <wsdl:output message="intf:getEJBHomeResponse" />
  </wsdl:operation>
- <wsdl:operation name="getHandle">
  <wsdl:input message="intf:getHandleRequest" />
  <wsdl:output message="intf:getHandleResponse" />
  </wsdl:operation>
- <wsdl:operation name="getPrimaryKey">
  <wsdl:input message="intf:getPrimaryKeyRequest" />
  <wsdl:output message="intf:getPrimaryKeyResponse" />
  </wsdl:operation>
- <wsdl:operation name="isIdentical" parameterOrder="in0">
  <wsdl:input message="intf:isIdenticalRequest" />
  <wsdl:output message="intf:isIdenticalResponse" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="OmniConnectCalcJBOSSEJBSoapBinding" 
type="intf:OmniConnectCalc">
  <wsdlsoap:binding style="rpc" 
transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="execute">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input>
  <wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="execute" />
  </wsdl:input>
- <wsdl:output>
  <wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="remove">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input>
  <wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="remove" 
/>
  </wsdl:input>
- <wsdl:output>
  <wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="getEJBHome">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input>
  <wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="getEJBHome" />
  </wsdl:input>
- <wsdl:output>
  <wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="getHandle">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input>
  <wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="getHandle" />
  </wsdl:input>
- <wsdl:output>
  <wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="getPrimaryKey">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input>
  <wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="getPrimaryKey" />
  </wsdl:input>
- <wsdl:output>
  <wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="isIdentical">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input>
  <wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="isIdentical" />
  </wsdl:input>
- <wsdl:output>
  <wsdlsoap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="OmniConnectCalcService">
- <wsdl:port name="OmniConnectCalcJBOSSEJB" 
binding="intf:OmniConnectCalcJBOSSEJBSoapBinding">
  <wsdlsoap:address 
location="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>

------------------  END  WSDL - First ---------------------------------

---------------------- NOTE ---------------------------------------
So I added bean mapping for my custom beans and redeployed my 
webservice.Doing so resulted in worse WSDL file.Following are the WSDD and 
WSDL file used .Can one please point or suggest anything I am doing 
wrong......
---------------------- END NOTE ---------------------------------------


---------------------- WSDD - with bean mapping------------------------
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
	    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
	    xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" >
   <service name="OmniConnectCalcJbossEJB" provider="java:EJB">
      <parameter name="beanJndiName" value="OmiConnectCalcJndiName" />
      <parameter name="homeInterfaceName" 
value="OmniConnectCalcPackage.OmniConnectCalcHome" />
      <parameter name="remoteInterfaceName" 
value="OmniConnectCalcPackage.OmniConnectCalc" />
      <parameter name="allowedMethods" value="exec" />
      <parameter name="className" 
value="OmniConnectCalcPackage.OmniConnectCalcEJB" />
      <parameter name="jndiURL" value="jnp://localhost:1099" />
      <parameter name="jndiContextClass" 
value="org.jnp.interfaces.NamingContextFactory" />
	    <beanMapping qname="ns:OmniDataCalcInputBean"
	                 xmlns:ns="com.sungard.omniconnect.framework"
	                 
languageSpecificType="java:com.sungard.omniconnect.framework.OmniDataCalcInputBean"/>
	    <beanMapping qname="ns1:OmniDataCalcOutputBean"
	                 xmlns:ns1="com.sungard.omniconnect.framework"
	                 
languageSpecificType="java:com.sungard.omniconnect.framework.OmniDataCalcOutputBean"/>




	    <beanMapping qname="ns2:OmniStandardOutputBean"
	                 xmlns:ns2="com.sungard.omniconnect.framework"
	                 
languageSpecificType="java:com.sungard.omniconnect.framework.OmniStandardOutputBean"/>

	    <beanMapping qname="ns3:OmniStandardInputBean"
	                 xmlns:ns3="com.sungard.omniconnect.framework"
	                 
languageSpecificType="java:com.sungard.omniconnect.framework.OmniStandardInputBean"/>

	    <beanMapping qname="ns4:OmniMessage"
	                 xmlns:ns4="com.sungard.omniconnect.framework"
	                 
languageSpecificType="java:com.sungard.omniconnect.framework.OmniMessage"/>

	    <beanMapping qname="ns5:OmniHalogenInfo"
	                 xmlns:ns5="com.sungard.omniconnect.framework"
	                 
languageSpecificType="java:com.sungard.omniconnect.framework.OmniHalogenInfo"/>

	    <beanMapping qname="ns5:OmniParticipantIdentifier"
	                 xmlns:ns5="com.sungard.omniconnect.framework"
	                 
languageSpecificType="java:com.sungard.omniconnect.framework.OmniParticipantIdentifier"/>

	    <beanMapping qname="ns5:OmniPerformanceTimes"
	                 xmlns:ns5="com.sungard.omniconnect.framework"
	                 
languageSpecificType="java:com.sungard.omniconnect.framework.OmniPerformanceTimes"/>

	    <beanMapping qname="ns6:PrintWriter"
	                 xmlns:ns6="java.io"
	                 languageSpecificType="java:java.io.PrintWriter"/>
   </service>
</deployment>
---------------------- END WSDD - with bean mapping--------------------

----------------------  WSDL - with bean mapping--------------------
  <?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions 
targetNamespace="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:intf="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB" 
xmlns:impl="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB-impl" 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:portType name="OmniConnectCalc" />
- <wsdl:binding name="OmniConnectCalcJBOSSEJBSoapBinding" 
type="intf:OmniConnectCalc">
  <wsdlsoap:binding style="rpc" 
transport="http://schemas.xmlsoap.org/soap/http" />
  </wsdl:binding>
- <wsdl:service name="OmniConnectCalcService">
- <wsdl:port name="OmniConnectCalcJBOSSEJB" 
binding="intf:OmniConnectCalcJBOSSEJBSoapBinding">
  <wsdlsoap:address 
location="http://localhost:8080/axis/services/OmniConnectCalcJBOSSEJB" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>
---------------------- END WSDL - with bean mapping--------------------


Thanks!


Arvind Chavar

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com