Title: RE: How do you get around "referenced but not defined" in wsdl2java tool

Hi,

Thanks for your help so far.  I appreciate you’re your help, but I have not yet been able to solve my problem and I see new errors, which I report below.   I am working on several inter-related objects that I wish to publish as web services.     I don’t see the "referenced but not defined" error after introducing -I and -e options in my java2wsdl script, but I now see "There is an undefined binding (BaseGroupModelSoapBinding) in the WSDL document".


I would appreciate help.

Thanks

Sagar

PS:


I will present to you the following.

1.  The ant script for java2wsdl  ( there is no error in the execution of this).

2.  The ant script for wsdl2java

3.  The new error I see  when I execute wsdl2java script.


1.  The ant script for java2wsdl


  <target name="GroupSessionBeanClientAgent" depends="_init" description="Java to WSDL for GroupSessionBeanClientAgent">

    <java fork="true" classname="org.apache.axis.wsdl.Java2WSDL" classpathref="classpath.testers" jvm="${tester.jvm}" >

      <arg value="-o"/>

      <arg value="WebContent/WSDL/GroupSessionBeanClientAgent.wsdl"/>

     <arg value="-e"/>

      <arg value="com.chordiant.userprofile.ejb.group.model.BaseGroupModel"/>

     <arg value="-I"/>

      <arg value="WebContent/WSDL/BaseGroupModel.wsdl"/>

       <arg value="-l"/>

      <arg value="http://localhost/WebServices/services/SecurityMgrBeanClientAgent"/>

      <arg value="com.chordiant.userprofile.ejb.group.client.GroupSessionBeanClientAgent"/>

      <!-- @appclient.configuration@ -->

    </java>

  </target>



2.  The ant script for wsdl2java


  <target name="GroupSessionBeanClientAgent" depends="_init" description="WSDL to Java for GroupSessionBeanClientAgent">

    <java fork="true" classname="org.apache.axis.wsdl.WSDL2Java" classpathref="classpath.testers" jvm="${tester.jvm}" >

      <arg value="-o"/>

      <arg value="../WebServicesProxyProject"/>

      <arg value="WebContent/WSDL/GroupSessionBeanClientAgent.wsdl"/>

      <arg value="-d"/>

      <arg value="Session"/>

      <arg value="-s"/>

      <arg value="-S"/>

      <arg value="true"/>

      <!-- @appclient.configuration@ -->

    </java>




3.  The new error I see.

        [java] java.io.IOException: Emitter failure.  There is an undefined binding (BaseGroupModelSoapBinding) in the WSDL document.

        [java] Hint: make sure <port binding=".."> is fully qualified.

        [java]  at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:536)

        [java]  at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:681)

        [java]  at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:510)

        [java]  at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:485)

        [java]  at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:462)

        [java]  at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:334)

        [java]  at java.lang.Thread.run(Thread.java:513)

        [java] Java Result: 1












-----Original Message-----
From: Christophe Roudet [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 10, 2004 7:46 AM
To: [EMAIL PROTECTED]
Subject: RE: How do you get around "referenced but not defined" in wsdl2java tool

Try to add BaseGroupModel, the missing type in your java2wsdl task.

Christophe

Christophe Roudet

>>> [EMAIL PROTECTED] 07/09/04 18:56 PM >>>

Thanks for your response.  I still have a problem.  Here is my ant

script for java2wsdl


  <target name="CwapiClientAgent" depends="_init" description="Java to

WSDL for CwapiClientAgent">

    <java fork="true" classname="org.apache.axis.wsdl.Java2WSDL"

classpathref="classpath.testers" jvm="${tester.jvm}" >

      <arg value="-o"/>

      <arg value="WebContent/WSDL/CwapiClientAgent.wsdl"/>

      <arg value="-e"/>

      <arg value="com.chordiant.jxw.efa.CommonCacheInterface"/>

      <arg value="-l"/>

      <arg

value="http://localhost/WebServices/services/CwapiClientAgent"/>

      <arg value="com.chordiant.cwapi.client.CwapiClientAgent"/>

      <!-- @appclient.configuration@ -->

    </java>

  </target>


Here is my ant script for wsdl2java



  <target name="CwapiClientAgent" depends="_init" description="WSDL to

Java for CwapiClientAgent">

    <java fork="true" classname="org.apache.axis.wsdl.WSDL2Java"

classpathref="classpath.testers" jvm="${tester.jvm}" >

      <arg value="-o"/>

      <arg value="../WebServicesProxyProject"/>

      <arg value="WebContent/WSDL/CwapiClientAgent.wsdl"/>

     <arg value="-d"/>

      <arg value="Session"/>

      <arg value="-s"/>

      <arg value="-S"/>

      <arg value="true"/>

      <!-- @appclient.configuration@ -->

    </java>

  </target> 

In my java2wsdl, I see no errors.  I see same error as in the past when

I execute wsdl2java


Thanks

Sagar

 

-----Original Message-----

From: Christophe Roudet [mailto:[EMAIL PROTECTED]]

Sent: Friday, July 09, 2004 3:27 PM

To: [EMAIL PROTECTED]

Subject: RE: How do you get around "referenced but not defined" in

wsdl2java tool

If you are using java2wsdl to generate your wsdl you can:

 - specify an input wsdl file with your types (--input <argument>)

 - specify extra-classes to add (-e, --extraClasses <argument>)

See java2wsdl doc http://ws.apache.org/axis/java/reference.html.

Here is the ant target I use:

<target name="java2wsdl">

 <axis-java2wsdl

    input="${axis.input.wsdl}"

    output="${axis.output.wsdl}"

    classname="${axis.interface}"

    implclass="${axis.interface.impl}"

    porttypename="${axis.porttype.name}"

    extraclasses="${axis.extraclasses}"

 

location="${axis.target.protocol}://${axis.target.server}:${axis.target.port

}/${axis.service.path}"

    style="RPC"

    namespace="urn:activia.cmp.soap">

     <mapping .../>

     <classpath>

       <pathelement path="${build.dir}/debugclasses"/>

       <path refid="class.path"/>

     </classpath>

  </axis-java2wsdl>

</target>

Christophe

________________________________________

From: Sagar Pidaparthi [mailto:[EMAIL PROTECTED]]

Sent: Friday, July 09, 2004 6:15 PM

To: [EMAIL PROTECTED]

Subject: How do you get around "referenced but not defined" in wsdl2java

tool

       

Hi,

How do you get around "referenced but not defined" while generating java

from wsdl2java tool?  Please see below the error stack trace.

Regards

Sagar

PS:

Type

 BaseGroupModel is referenced but not defined.

        [java]  at

org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.j

ava:631)

        [java]  at

org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:511)

        [java]  at

org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:485)

        [java]  at

org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:462)

        [java]  at

org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:334)

        [java]  at java.lang.Thread.run(Thread.java:513)

        [java] Java Result: 1


Reply via email to