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 "ankur sarkar (JIRA)" <ji...@apache.org> on 2007/11/27 06:51:43 UTC

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

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


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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-3368.
-------------------------------------

    Resolution: Won't Fix

> 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
>            Assignee: Amila Chinthaka Suriarachchi
>         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.
> I have used -sn ManageProfile -pn ClientProfileSyncPort
> -sn ManageProfile -pn ServiceProfileSyncPort in the build.xml i.e.
> <target name="import-wsdl" depends="clean,init">
> 	<java classname="org.apache.axis2.wsdl.WSDL2Java">
> 			<arg value="-uri" />
> 			<arg file="${wsdl.dir}/${wsdl.filename}" />
> 			<arg value="-o" />
> 			<arg file="${src.generated.dir}" />
> 			<arg value="-d"/>
> 			 <arg value="xmlbeans"/>
> 		                      <arg value="-sn"/> 
> 			<arg value="ManageProfile"/> 
> 			<arg value="-pn" />
> 		                      <arg value="ClientProfileSyncPort" />
> 			<arg value="-sn"/> 
> 			<arg value="ManageProfile"/>
> 			<arg value="-pn"/>
> 			 <arg value="ServiceProfileSyncPort"/> 
> 	        <classpath refid="axis.classpath" />
> 	</java>
>    </target>
> But this creates stub only for ServiceProfileSyncPort. Could you help please.

-- 
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


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

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi reassigned AXIS2-3368:
---------------------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> 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
>            Assignee: Amila Chinthaka Suriarachchi
>         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.
> I have used -sn ManageProfile -pn ClientProfileSyncPort
> -sn ManageProfile -pn ServiceProfileSyncPort in the build.xml i.e.
> <target name="import-wsdl" depends="clean,init">
> 	<java classname="org.apache.axis2.wsdl.WSDL2Java">
> 			<arg value="-uri" />
> 			<arg file="${wsdl.dir}/${wsdl.filename}" />
> 			<arg value="-o" />
> 			<arg file="${src.generated.dir}" />
> 			<arg value="-d"/>
> 			 <arg value="xmlbeans"/>
> 		                      <arg value="-sn"/> 
> 			<arg value="ManageProfile"/> 
> 			<arg value="-pn" />
> 		                      <arg value="ClientProfileSyncPort" />
> 			<arg value="-sn"/> 
> 			<arg value="ManageProfile"/>
> 			<arg value="-pn"/>
> 			 <arg value="ServiceProfileSyncPort"/> 
> 	        <classpath refid="axis.classpath" />
> 	</java>
>    </target>
> But this creates stub only for ServiceProfileSyncPort. Could you help please.

-- 
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


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

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ 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


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

Posted by "ankur sarkar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ankur sarkar updated AXIS2-3368:
--------------------------------


Can anyone please help me out with this issue:

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.

> 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


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

Posted by "ankur sarkar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ankur sarkar updated AXIS2-3368:
--------------------------------

    Attachment: build.xml

> 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
>
>
> 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


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

Posted by "ankur sarkar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ankur sarkar updated AXIS2-3368:
--------------------------------

    Description: 
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.

I have used -sn ManageProfile -pn ClientProfileSyncPort
-sn ManageProfile -pn ServiceProfileSyncPort in the build.xml i.e.

<target name="import-wsdl" depends="clean,init">
	<java classname="org.apache.axis2.wsdl.WSDL2Java">
			<arg value="-uri" />
			<arg file="${wsdl.dir}/${wsdl.filename}" />
			<arg value="-o" />
			<arg file="${src.generated.dir}" />
			<arg value="-d"/>
			 <arg value="xmlbeans"/>
		                      <arg value="-sn"/> 
			<arg value="ManageProfile"/> 
			<arg value="-pn" />
		                      <arg value="ClientProfileSyncPort" />
			<arg value="-sn"/> 
			<arg value="ManageProfile"/>
			<arg value="-pn"/>
			 <arg value="ServiceProfileSyncPort"/> 
	        <classpath refid="axis.classpath" />
	</java>
   </target>

But this creates stub only for ServiceProfileSyncPort. Could you help please.

  was:
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.


I have used -sn ManageProfile -pn ClientProfileSyncPort
-sn ManageProfile -pn ServiceProfileSyncPort in the build.xml i.e.

<target name="import-wsdl" depends="clean,init">
	<java classname="org.apache.axis2.wsdl.WSDL2Java">
			<arg value="-uri" />
			<arg file="${wsdl.dir}/${wsdl.filename}" />
			<arg value="-o" />
			<arg file="${src.generated.dir}" />
			<arg value="-d"/>
			 <arg value="xmlbeans"/>
		                      <arg value="-sn"/> 
			<arg value="ManageProfile"/> 
			<arg value="-pn" />
		                      <arg value="ClientProfileSyncPort" />
			<arg value="-sn"/> 
			<arg value="ManageProfile"/>
			<arg value="-pn"/>
			 <arg value="ServiceProfileSyncPort"/> 
	        <classpath refid="axis.classpath" />
	</java>
   </target>

But this creates stub only for ServiceProfileSyncPort. Could you help please.

> 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.
> I have used -sn ManageProfile -pn ClientProfileSyncPort
> -sn ManageProfile -pn ServiceProfileSyncPort in the build.xml i.e.
> <target name="import-wsdl" depends="clean,init">
> 	<java classname="org.apache.axis2.wsdl.WSDL2Java">
> 			<arg value="-uri" />
> 			<arg file="${wsdl.dir}/${wsdl.filename}" />
> 			<arg value="-o" />
> 			<arg file="${src.generated.dir}" />
> 			<arg value="-d"/>
> 			 <arg value="xmlbeans"/>
> 		                      <arg value="-sn"/> 
> 			<arg value="ManageProfile"/> 
> 			<arg value="-pn" />
> 		                      <arg value="ClientProfileSyncPort" />
> 			<arg value="-sn"/> 
> 			<arg value="ManageProfile"/>
> 			<arg value="-pn"/>
> 			 <arg value="ServiceProfileSyncPort"/> 
> 	        <classpath refid="axis.classpath" />
> 	</java>
>    </target>
> But this creates stub only for ServiceProfileSyncPort. Could you help please.

-- 
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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576698#action_12576698 ] 

Davanum Srinivas commented on AXIS2-3368:
-----------------------------------------

please follow the instructions from amila.

> 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
>            Assignee: Amila Chinthaka Suriarachchi
>         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.
> I have used -sn ManageProfile -pn ClientProfileSyncPort
> -sn ManageProfile -pn ServiceProfileSyncPort in the build.xml i.e.
> <target name="import-wsdl" depends="clean,init">
> 	<java classname="org.apache.axis2.wsdl.WSDL2Java">
> 			<arg value="-uri" />
> 			<arg file="${wsdl.dir}/${wsdl.filename}" />
> 			<arg value="-o" />
> 			<arg file="${src.generated.dir}" />
> 			<arg value="-d"/>
> 			 <arg value="xmlbeans"/>
> 		                      <arg value="-sn"/> 
> 			<arg value="ManageProfile"/> 
> 			<arg value="-pn" />
> 		                      <arg value="ClientProfileSyncPort" />
> 			<arg value="-sn"/> 
> 			<arg value="ManageProfile"/>
> 			<arg value="-pn"/>
> 			 <arg value="ServiceProfileSyncPort"/> 
> 	        <classpath refid="axis.classpath" />
> 	</java>
>    </target>
> But this creates stub only for ServiceProfileSyncPort. Could you help please.

-- 
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


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

Posted by "ankur sarkar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ankur sarkar updated AXIS2-3368:
--------------------------------

    Attachment: ManageProfile.wsdl

> 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


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

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549974 ] 

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

I mean generate the code twice once with
-sn ManageProfile -pn ClientProfileSyncPort
and seconde with
-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
>            Assignee: Amila Chinthaka Suriarachchi
>         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.
> I have used -sn ManageProfile -pn ClientProfileSyncPort
> -sn ManageProfile -pn ServiceProfileSyncPort in the build.xml i.e.
> <target name="import-wsdl" depends="clean,init">
> 	<java classname="org.apache.axis2.wsdl.WSDL2Java">
> 			<arg value="-uri" />
> 			<arg file="${wsdl.dir}/${wsdl.filename}" />
> 			<arg value="-o" />
> 			<arg file="${src.generated.dir}" />
> 			<arg value="-d"/>
> 			 <arg value="xmlbeans"/>
> 		                      <arg value="-sn"/> 
> 			<arg value="ManageProfile"/> 
> 			<arg value="-pn" />
> 		                      <arg value="ClientProfileSyncPort" />
> 			<arg value="-sn"/> 
> 			<arg value="ManageProfile"/>
> 			<arg value="-pn"/>
> 			 <arg value="ServiceProfileSyncPort"/> 
> 	        <classpath refid="axis.classpath" />
> 	</java>
>    </target>
> But this creates stub only for ServiceProfileSyncPort. Could you help please.

-- 
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