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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/12/07 06:06:43 UTC

[jira] Commented: (AXIS2-3368) Unable to generate client stub for wsdl containing multiple ports

    [ https://issues.apache.org/jira/browse/AXIS2-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549302 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-3368:
-----------------------------------------------------

here the problem is that your two ports refers to two different PortTypes. -ap option generates the code for all ports with same portTypes.
if you consider the wsdl, portType is like an interface for a service. (this is why wsdl2.0 ask you to declare the interface in service it self). so if you have two different interfaces that means you have two services.
Therefore the only option you have is to declare those two porst in two services.
<service name="ManageProfile1">
    <port binding="s1:ClientProfileSyncBinding" name="ClientProfileSyncPort">
      <s2:address location="http://10.230.197.200:50302/soap/servlet/rpcrouter/ClientProfileSync"/>
    </port>
    
  </service>
<service name="ManageProfile2">
      <port binding="s1:ServiceProfileSyncBinding" name="ServiceProfileSyncPort">
      <s2:address location="http://10.230.197.200:50302/ManageServiceProfile/2007/05/18/ServiceProfileSync"/>
    </port>
  </service>

you can do this only if you are the service author. other wise your option is to generate the stub by giving the servicename -sn and portname -pn for both ports.
eg.
-sn ManageProfile -pn ClientProfileSyncPort
-sn ManageProfile -pn ServiceProfileSyncPort

> Unable to generate client stub for wsdl containing multiple ports
> -----------------------------------------------------------------
>
>                 Key: AXIS2-3368
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3368
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.3
>         Environment: WebLogic 8.1 sp5 , jdk 1.4
>            Reporter: ankur sarkar
>         Attachments: build.xml, ManageProfile.wsdl
>
>
> Unable to generate client stub for wsdl containing multiple ports. The client stub is generated only for the last porttype in the wsdl. We have used both adb as well as xmlbeans as the databinding framework and also used "-ap" option but could not generate client stub for all the ports.
> PFA the build.xml and the wsdl.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org