You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Trapanator (JIRA)" <ax...@ws.apache.org> on 2004/10/27 09:49:04 UTC

[jira] Created: (AXIS-1625) WSDL2Java produces an incorrect webservice name in deploy.wsdd and *Locator.java

WSDL2Java produces an incorrect webservice name in deploy.wsdd and *Locator.java
--------------------------------------------------------------------------------

         Key: AXIS-1625
         URL: http://issues.apache.org/jira/browse/AXIS-1625
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.2RC1    
 Environment: Windows 2000 Service Pack 4
    Reporter: Trapanator
    Priority: Critical


When I'm doing WSDL2Java on this WSDL:


----------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="HelloWorld" targetNamespace="http://clientService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:tns="http://clientService" xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <types>
      <schema targetNamespace="http://clientService" xmlns="http://www.w3.org/2001/XMLSchema">
			   <element name="documento">
				    <simpleType>
					     <restriction base="xs:string"/>
				    </simpleType>
			   </element>
			  </schema>
   </types>

   <message name="HelloWorldResponseMessage">
      <part name="payload" type="xs:string"/>
   </message>

   <message name="HelloWorldRequestMessage1">
      <part element="tns:documento" name="payload"/>
   </message>

   <portType name="HelloWorld">
      <operation name="process">
         <input message="tns:HelloWorldRequestMessage1"/>
         <output message="tns:HelloWorldResponseMessage"/>
      </operation>
   </portType>

   <binding name="clientServiceBinding" type="tns:HelloWorld">
      <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      <operation name="process">
       <soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
         <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
         </input>
         <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
         </output>
      </operation>
   </binding>

   <service name="clientService">
      <port binding="tns:clientServiceBinding" name="clientServicePort">
       <soap:address location="http://sagitta.itc.it:50000/active-bpel/services/clientService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
      </port>
   </service>

</definitions>
------------------------------------------------------------

if I do a

   java org.apache.axis.wsdl.WSDL2Java -v --server-side --skeletonDeploy true --package clientService --output . --all clientService.wsdl

it generates all files.

The deploy.wsdd contains:

   <service name="clientServicePort" provider="java:RPC" style="rpc" use="encoded">

what's that name? It shouldn't be "clientService" (without that "Port")?

And go in ClientServiceLocator.java:

   private java.lang.String clientServicePortWSDDServiceName = "clientServicePort";

this is wrong (obviously).



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-1625) WSDL2Java produces an incorrect webservice name in deploy.wsdd and *Locator.java

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1625?page=history ]
     
Davanum Srinivas resolved AXIS-1625:
------------------------------------

    Resolution: Invalid

Closing bug as per Venkat's comment.

> WSDL2Java produces an incorrect webservice name in deploy.wsdd and *Locator.java
> --------------------------------------------------------------------------------
>
>          Key: AXIS-1625
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1625
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC1
>  Environment: Windows 2000 Service Pack 4
>     Reporter: Trapanator
>     Priority: Critical

>
> When I'm doing WSDL2Java on this WSDL:
> ----------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="HelloWorld" targetNamespace="http://clientService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:tns="http://clientService" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>    <types>
>       <schema targetNamespace="http://clientService" xmlns="http://www.w3.org/2001/XMLSchema">
> 			   <element name="documento">
> 				    <simpleType>
> 					     <restriction base="xs:string"/>
> 				    </simpleType>
> 			   </element>
> 			  </schema>
>    </types>
>    <message name="HelloWorldResponseMessage">
>       <part name="payload" type="xs:string"/>
>    </message>
>    <message name="HelloWorldRequestMessage1">
>       <part element="tns:documento" name="payload"/>
>    </message>
>    <portType name="HelloWorld">
>       <operation name="process">
>          <input message="tns:HelloWorldRequestMessage1"/>
>          <output message="tns:HelloWorldResponseMessage"/>
>       </operation>
>    </portType>
>    <binding name="clientServiceBinding" type="tns:HelloWorld">
>       <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       <operation name="process">
>        <soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          <input>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </input>
>          <output>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </output>
>       </operation>
>    </binding>
>    <service name="clientService">
>       <port binding="tns:clientServiceBinding" name="clientServicePort">
>        <soap:address location="http://sagitta.itc.it:50000/active-bpel/services/clientService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       </port>
>    </service>
> </definitions>
> ------------------------------------------------------------
> if I do a
>    java org.apache.axis.wsdl.WSDL2Java -v --server-side --skeletonDeploy true --package clientService --output . --all clientService.wsdl
> it generates all files.
> The deploy.wsdd contains:
>    <service name="clientServicePort" provider="java:RPC" style="rpc" use="encoded">
> what's that name? It shouldn't be "clientService" (without that "Port")?
> And go in ClientServiceLocator.java:
>    private java.lang.String clientServicePortWSDDServiceName = "clientServicePort";
> this is wrong (obviously).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1625) WSDL2Java produces an incorrect webservice name in deploy.wsdd and *Locator.java

Posted by "Venkat Reddy (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1625?page=comments#action_54924 ]
     
Venkat Reddy commented on AXIS-1625:
------------------------------------

The <deployment> element inside the WSDD file contains one or more <service> elements each corresponding to the the WSDL <port> elements and hence the naming. I'm afraid it is not that obvious :)

-- Venkat

> WSDL2Java produces an incorrect webservice name in deploy.wsdd and *Locator.java
> --------------------------------------------------------------------------------
>
>          Key: AXIS-1625
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1625
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC1
>  Environment: Windows 2000 Service Pack 4
>     Reporter: Trapanator
>     Priority: Critical

>
> When I'm doing WSDL2Java on this WSDL:
> ----------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="HelloWorld" targetNamespace="http://clientService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:tns="http://clientService" xmlns:xs="http://www.w3.org/2001/XMLSchema">
>    <types>
>       <schema targetNamespace="http://clientService" xmlns="http://www.w3.org/2001/XMLSchema">
> 			   <element name="documento">
> 				    <simpleType>
> 					     <restriction base="xs:string"/>
> 				    </simpleType>
> 			   </element>
> 			  </schema>
>    </types>
>    <message name="HelloWorldResponseMessage">
>       <part name="payload" type="xs:string"/>
>    </message>
>    <message name="HelloWorldRequestMessage1">
>       <part element="tns:documento" name="payload"/>
>    </message>
>    <portType name="HelloWorld">
>       <operation name="process">
>          <input message="tns:HelloWorldRequestMessage1"/>
>          <output message="tns:HelloWorldResponseMessage"/>
>       </operation>
>    </portType>
>    <binding name="clientServiceBinding" type="tns:HelloWorld">
>       <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       <operation name="process">
>        <soap:operation soapAction="" style="rpc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          <input>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </input>
>          <output>
>         <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>          </output>
>       </operation>
>    </binding>
>    <service name="clientService">
>       <port binding="tns:clientServiceBinding" name="clientServicePort">
>        <soap:address location="http://sagitta.itc.it:50000/active-bpel/services/clientService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
>       </port>
>    </service>
> </definitions>
> ------------------------------------------------------------
> if I do a
>    java org.apache.axis.wsdl.WSDL2Java -v --server-side --skeletonDeploy true --package clientService --output . --all clientService.wsdl
> it generates all files.
> The deploy.wsdd contains:
>    <service name="clientServicePort" provider="java:RPC" style="rpc" use="encoded">
> what's that name? It shouldn't be "clientService" (without that "Port")?
> And go in ClientServiceLocator.java:
>    private java.lang.String clientServicePortWSDDServiceName = "clientServicePort";
> this is wrong (obviously).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira