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 Vikas Sharma <vi...@gmail.com> on 2006/08/17 15:58:09 UTC

[Axis2]: opnotfoundinwsdl: Help needed

Hi,

Actaully we are new to Axis2.

Upon reading the user guide we tried the second methods of generating the
webservice.

1. We started with the following wsdl file.

*****************************************************************************************************************************


<?xml version="1.0" encoding="UTF-8"?>

<definitions name="WsTpcc"

targetNamespace="*http://webservices.mycli.com/WsTpcc *"

xmlns="*http://schemas.xmlsoap.org/wsdl/*"

xmlns:SOAP-ENC="*http://schemas.xmlsoap.org/soap/encoding/ *"

xmlns:soap="*http://schemas.xmlsoap.org/wsdl/soap/*"

xmlns:tns="*http://webservices.mycli.com/WsTpcc *"

xmlns:xsd="*http://www.w3.org/2001/XMLSchema*"

xmlns:xsd1="*http://tpcc.mycli.com/xsd*"

xmlns:xsi=" *http://www.w3.org/2001/XMLSchema-instance*">

<types>

<schema targetNamespace="*http://tpcc.mycli.com/xsd *"

xmlns="*http://www.w3.org/2001/XMLSchema*"

xmlns:wsdl="*http://schemas.xmlsoap.org/wsdl/ *"

elementFormDefault="qualified">

<element name="inputParam" type="xsd:string"/>

<element name="outputParam" type="xsd:string"/>

</schema>

</types>

<message name="tpccRequest">

<part element="xsd1:inputParam" name="a"/>

</message>

<message name="tpccResponse">

<part element="xsd1:outputParam" name="result"/>

</message>

<portType name="WsTpcc">

<operation name="startTpcc">

<input message="tns:tpccRequest" name="tpccRequest"/>

<output message="tns:tpccResponse" name="tpccResponse"/>

</operation>

</portType>

<binding name="WsTpccPortBinding"

type="tns:WsTpcc">

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

<operation name="startTpcc">

<soap:operation soapAction="startTpcc" style="document"/>

<input name="tpccRequest">

<soap:body namespace="*http://webservices.mycli.com/WsTpcc*"

use="literal"/>

</input>

<output name="tpccResponse">

<soap:body namespace="*http://webservices.mycli.com/WsTpcc *"

use="literal"/>

</output>

</operation>

</binding>

<service name="WsTpcc">

<port binding="tns:WsTpccPortBinding"

name="WsTpcc">

<soap:address

location="*http://10.203.143.96:4444/webservices/WsTpcc"/ *>

</port>

</service>

</definitions>



*****************************************************************************************************************************



2. Upon executing WSDL2Java, we got java files and the following service.xmlfile

*****************************************************************************************************************************

<!--Auto generated Axis Service XML-->

<service name="WsTpcc">

<parameter locked="xsd:false" name="ServiceClass">
com.mycli.tpcc.ws.WsTpccSkeleton</parameter>

<!--Mounting the method startTpcc-->

<operation name="startTpcc">

<messageReceiver class="com.mycli.tpcc.ws.WsTpccMessageReceiver"/>

</operation>

</service>

*****************************************************************************************************************************

3. And after packing the code and this service.xml in a .aar file we
deployed it and got the following messages in our log file, saying
(opnotfoundinwsdl).

*****************************************************************************************************************************


2006-08-17 18:45:37,796 ReporterListener DEBUG
org.apache.axis2.i18n.ProjectResourceBundle - loadBundle: Ignoring
MissingResourceException: Can't find bundle for base name
org.apache.axis2.resource, locale en_US

2006-08-17 18:45:37,796 ReporterListener DEBUG
org.apache.axis2.i18n.ProjectResourceBundle - Created
org.apache.axis2.i18n.resource, linked to parent null

2006-08-17 18:45:37,801 ReporterListener DEBUG
org.apache.axis2.i18n.ProjectResourceBundle - getBundle(org.apache.axis2 ,
org.apache.axis2.i18n,resource,null,...)

2006-08-17 18:45:37,801 ReporterListener DEBUG
org.apache.axis2.i18n.ProjectResourceBundle -
org.apache.axis2.i18n.resource::handleGetObject(addingnewmodule)

2006-08-17 18:45:37,803 ReporterListener INFO
org.apache.axis2.deployment.DeploymentEngine - adding new module

2006-08-17 18:45:37,803 ReporterListener DEBUG
org.apache.axis2.i18n.ProjectResourceBundle -
org.apache.axis2.i18n.resource::handleGetObject(deployeingmodule)

2006-08-17 18:45:37,805 ReporterListener INFO
org.apache.axis2.deployment.DeploymentEngine - Deploying module : addressing

2006-08-17 18:45:37,837 ReporterListener DEBUG
org.apache.axis2.i18n.ProjectResourceBundle -
org.apache.axis2.i18n.resource::handleGetObject(wsdlfilenotfound)

2006-08-17 18:45:37,837 ReporterListener INFO
org.apache.axis2.deployment.repository.util.ArchiveReader - WSDL file not
found for the service : WsTpcc.aar

2006-08-17 18:45:37,845 ReporterListener INFO
org.apache.axis2.engine.Phase- Handler deafult Handler Added to the
Phase MessageProcessing

2006-08-17 18:45:37,846 ReporterListener DEBUG
org.apache.axis2.i18n.ProjectResourceBundle -
org.apache.axis2.i18n.resource::handleGetObject(opnotfoundinwsdl)

2006-08-17 18:45:37,847 ReporterListener INFO
org.apache.axis2.deployment.DeploymentParser - startTpcc Operation Name not
found in WSDL

2006-08-17 18:45:37,866 ReporterListener DEBUG
org.apache.axis2.i18n.ProjectResourceBundle -
org.apache.axis2.i18n.resource::handleGetObject(deployingws)

2006-08-17 18:45:37,867 ReporterListener INFO
org.apache.axis2.deployment.DeploymentEngine - Deployment WS Name WsTpcc.aar

*****************************************************************************************************************************



And the service was unavailable at "*
http://10.203.143.96:4444/webservices/WsTpcc?wsdl*"

The error message in IE was :

"The page you are looking for is currently unavailable. The Web site might
be experiencing technical difficulties, or you may need to adjust your
browser settings."

Thanks in anticipation.,

Vikas Sharma