WebService stub generation

Hello,
As many people which try to use the AS3 stub generation from
WSDL, I have problems because the generated code is not working
with *complexe* (aka non trivial) WSDLs.
There are a lot of bugs in jira arround
this
theme.
Is there any plan to have it corrected? I haven't find much
answer in jira neither in forums, am I missing a support source (a
dedicated forum, ...)?
Is anyone able to help me? The answer could be don't try to
use WS generation stuff.
Regards,
Mimil

Select the Proxy node in the Application Navigator and View the Structure Pane, which will display all the related files for the proxy node..
Regards,
Sunil..

Similar Messages

  • Https enable webservice stub generation .

    Hi,
    I have tried many times but did not have any luck .anyone of you ever successful in generating stub from sun tool kit utility for Web service over HTTPS .
    I need SSL enable it's project requirement ,but could not able to generate Stub ,getting exception while generating stub and then stub generation utility crashes.
    I need help please reply me .

    Hi,
    I have tried many times but did not have any luck .anyone of you ever successful in generating stub from sun tool kit utility for Web service over HTTPS .
    I need SSL enable it's project requirement ,but could not able to generate Stub ,getting exception while generating stub and then stub generation utility crashes.
    I need help please reply me .

  • Webservice Stubs generation problems

    I need to consume a axis webservice. I got the wsdl from the url and i tried to generate stubs in Jdev 10.1.2 but it is giving some wsdl validation errors like schema element not found. In that wsdl they imported some schema(.xsd) files.I dont know how to validate a wsdl file in jdev against schema files. If any one can help me,it would be really great. I was trying since 2 days but no luck.Please help me.
    Thanks

    Maybe you should try JDeveloper 10.1.3 that has a much better WS support.

  • J2ME, WTK, Webservices, Stub-generation & byte[ ]

    Does anybody know if WTK2.2 (with current patches) support webservices metods that return a byte-array (byte [ ])? I have a webservice developed in JBuilder with a method that return a byte-array. When generatig stub-classes for this webservice WTK display this message: error: Found unknown simple type: byte[ ]
    ?

    Thunder!
    I'm struggling with the same problem with the byte[] in my wsdl. Did you have any luck solving this?

  • Issue while generating Webservice Stub

    Hi,
    When i tried to create a Webservice stub using Stub Generator available in Sun Java WTK 2.5 Beta, it created a Stub java file with operatons(methods) missing in it.
    It displayed following warning while creating stub:
    warning: ignoring operation "addBlogInfo": more than one part in input message
    warning: ignoring operation "getLocation": more than one part in input message
    warning: Port "MzoneBlogging" does not contain any usable operations
    The WSDL file which I used as an input is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="urn:Mzone" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:Mzone" xmlns:intf="urn:Mzone" xmlns:tns1="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <!--WSDL created by Apache Axis version: 1.3
    Built on Oct 05, 2005 (05:23:37 EDT)-->
    <wsdl:types>
    <schema targetNamespace="urn:Mzone" xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="in0" type="tns1:string"/>
    <element name="in1" type="tns1:string"/>
    <element name="in2" type="xsd:int"/>
    <element name="in3" type="tns1:string"/>
    <element name="addBlogInfoReturn" type="tns1:string"/>
    <element name="in4" type="tns1:string"/>
    <element name="in5" type="tns1:string"/>
    <complexType name="Transaction">
    <sequence>
    <element name="transactionId" nillable="true" type="tns1:string"/>
    </sequence>
    </complexType>
    <complexType name="ArrayOfTransaction">
    <sequence>
    <element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:Transaction"/>
    </sequence>
    </complexType>
    <complexType name="ZoneInfo">
    <sequence>
    <element name="categoryId" type="xsd:int"/>
    <element name="categoryName" nillable="true" type="tns1:string"/>
    <element name="transaction" nillable="true" type="impl:ArrayOfTransaction"/>
    </sequence>
    </complexType>
    <element name="getLocationReturn">
    <complexType>
    <sequence>
    <element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:ZoneInfo"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </wsdl:types>
    <wsdl:message name="getLocationResponse">
    <wsdl:part element="impl:getLocationReturn" name="getLocationReturn"/>
    </wsdl:message>
    <wsdl:message name="getLocationRequest">
    <wsdl:part element="impl:in4" name="in0"/>
    <wsdl:part element="impl:in5" name="in1"/>
    </wsdl:message>
    <wsdl:message name="addBlogInfoResponse">
    <wsdl:part element="impl:addBlogInfoReturn" name="addBlogInfoReturn"/>
    </wsdl:message>
    <wsdl:message name="addBlogInfoRequest">
    <wsdl:part element="impl:in0" name="in0"/>
    <wsdl:part element="impl:in1" name="in1"/>
    <wsdl:part element="impl:in2" name="in2"/>
    <wsdl:part element="impl:in3" name="in3"/>
    </wsdl:message>
    <wsdl:portType name="MzoneBlogging">
    <wsdl:operation name="addBlogInfo" parameterOrder="in0 in1 in2 in3">
    <wsdl:input message="impl:addBlogInfoRequest" name="addBlogInfoRequest"/>
    <wsdl:output message="impl:addBlogInfoResponse" name="addBlogInfoResponse"/>
    </wsdl:operation>
    <wsdl:operation name="getLocation" parameterOrder="in0 in1">
    <wsdl:input message="impl:getLocationRequest" name="getLocationRequest"/>
    <wsdl:output message="impl:getLocationResponse" name="getLocationResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="MzoneBloggingSoapBinding" type="impl:MzoneBlogging">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="addBlogInfo">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="addBlogInfoRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="addBlogInfoResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getLocation">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="getLocationRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="getLocationResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="MzoneBloggingService">
    <wsdl:port binding="impl:MzoneBloggingSoapBinding" name="MzoneBlogging">
    <wsdlsoap:address location="http://localhost:8080/axis/services/MzoneBlogging"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Please let me know how to solve this issue. Its very urgent. Any help greatly appreciated.
    Thanks in advance

    Hi,
    I have written this rule....
    ZAP1 Privilage Entitlement 90 Days
            VARSTLDYPP Last day of pay.per?
              N
                LEAVE      Stop with PC Rule
              Y
                HRS=FR01C  Set
                HRS?90     Decision op.     HRS
                    HRS-90     Subtraction
                    HRS*-1     Multiplication
                    HRS?1      Decision op.     HRS
                        HRS=1      Set
                        ADDDB0094Z Set day balance = 0
                        UPDTQA01   Abs. Quota Accrual
                      <
                        ADDDB0094Z Set day balance = 0
                        UPDTQA01   Abs. Quota Accrual
                  <
                    HRS=LR01C  Set
                    UPDTQA01   Abs. Quota Accrual
                    ADDDB0094Z Set day balance = 0
    Please check and tell is it ok?
    Regards,
    Apoorwa

  • Java.lang.ClassCastException when calling webservice stub  from oracle DB

    Hello everyone,
    Because i need to get familliar with calling java webservices from an oracle database, i followed the following example
    (http://www.oracle.com/technology/products/jdev/howtos/10g/WS_DBCallout/DBCalloutWS_HowTo.htm),
    which included installing the SOAP client stack to the database (in the sys schema), grant the right permissions to the SYS user, developing a simple Helloworld webservice with jdeveloper 10.1.2, generating a Webservice stub and deploying a static method of this stub to the database.
    All of this worked just fine, but when i want to call the webservice from oracle by invoking the deployed function, i get a java.lang.ClassCastException.
    The complete stacktrace lists as follows:
    v_Return = foutje: java.lang.ClassCastExceptionnulljava.lang.ClassCastException
         at org.apache.soap.rpc.RPCMessage.serializeParams(RPCMessage.java:323)
         at org.apache.soap.rpc.RPCMessage.marshall(RPCMessage.java:305)
         at org.apache.soap.Body.marshall(Body.java:148)
         at org.apache.soap.Envelope.marshall(Envelope.java:203)
         at org.apache.soap.Envelope.marshall(Envelope.java:161)
         at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHTTPConnection.java:664)
         at org.apache.soap.rpc.Call.invoke(Call.java:261)
         at test.HelloWorldServiceStub.sayHello(HelloWorldServiceStub.java:82)
    I debugged the WebServiceStub and noticed that the call.invoke method crashes. This is weird beacuse when i use System.out.println on the parameter is works just fine. so you would think it is a string.
    Moreover, if i invoke the webservice from the endpoint or even when im debugging the stub locally it all works just fine.
    Can someone plzzzzzz help me with this because i spend the whole day looking for an answer and im getting crazy!!!!!
    Thanx al lot guys,
    Kim
    PS or could the problem be in the database instead of the webservice?????????
    Message was edited by:
    user568880
    Message was edited by:
    Kim Zeevaarders

    I think that it's going wrong because i did not install the right SOAP client stack.
    In the HowTo is specified what JAR files are to be loaded in the database (from %JDEV_HOME), but it states that it has only been tested on a Oracle 9.2 database. I'm using Oracle10g. Maybe that's the reason that im getting this classcast exception...
    Can anybody tell me what the right .JAR files are that have to be loaded into database when working with Oracle 10g?
    Many thx in advance!
    Kim

  • Stub generation problem with the wsdl file

    Hi all
    I'm trying to write a simle webservice client based on JAX. My webservice is working fine I've tested it with a standalone app. In my webservice I'm using complex type. Problem is that i can't generate properly stubs. This is a msg I'm getting during the generation
    warning: ignoring operation "getEmployee": message part does not refer to a schema element declaration
    warning: Port "EmployeeIFPort" does not contain any usable operationsBecause of that my method to get the Object from the webservice is not generated.
    This is the wsdl file.
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="EmployeeService" targetNamespace="urn:Foo" xmlns:tns="urn:Foo" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
      <types>
        <schema targetNamespace="urn:Foo" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:Foo" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
          <complexType name="Employee">
            <sequence>         
              <element name="name" type="xsd:string"/>
              <element name="surname" type="xsd:string"/>
           <element name="age" type="xsd:int"/>
         </sequence>
         </complexType>
        </schema>
       </types>
      <message name="EmployeeIF_getEmployee">
        <part name="String_1" type="xsd:string"/>
        <part name="String_2" type="xsd:string"/>
        <part name="int_3" type="xsd:int"/>
      </message>
      <message name="EmployeeIF_getEmployeeResponse">
        <part name="result" type="tns:Employee"/>
      </message>
      <portType name="EmployeeIF">
        <operation name="getEmployee" parameterOrder="String_1 String_2 int_3">
          <input message="tns:EmployeeIF_getEmployee"/>
          <output message="tns:EmployeeIF_getEmployeeResponse"/>
        </operation>
      </portType>
      <binding name="EmployeeIFBinding" type="tns:EmployeeIF">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <operation name="getEmployee">
          <soap:operation soapAction=""/>
          <input>
            <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
          </input>
          <output>
            <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="EmployeeService">
        <port name="EmployeeIFPort" binding="tns:EmployeeIFBinding">
          <soap:address location="http://localhost:8080/EmployeeService/getEmployee"/>
        </port>
      </service>
    </definitions>However the complex type class Employee is generated properly as well as other stub classes like the interface EmployeeIF, EmployeeIF_getEmployee_RequestStruct and EmployeeIF_getEmployee_ResponseStruct (I mean i think they are generated properly). As I said befor the problem is that the webservice method from the EmployeeIF.getEmployee() is not generated in the EmployeeIF_Stub. Any ideas why? I'm using WTK 2.5
    thx in advance :)

    Here i Followed  Url &sap-user=XXX&sap-password=YYY to the WSDL-URL with XXX and YYY being your username and password and you will be authenticated.
    Later i Struck. Actual my requirement is I have two views i want to take a value from the first view and then return value displayed in the second view. All input/output parameters are the taken from the WSDL file. Can you please Help me.

  • WSDL/client-stub generation without EJBs ?

    My WL7 application invokes methods on external subscriber
    web-apps. I need to provide WSDLs for these external apps, since
    they'll be implemented by our customers.
    Currently, I create 'dummy' EJBs, then create .ears out of it,
    run 'servicegen' to create a dummy webservice, then run
    'clientgen' to create the WSDLs and the client stub classes
    that I'll finally use. I'd like to avoid some of the above
    steps. Ideally, I'd just create the appropriate Java interface
    classes, then use some tool to create the WSDL and the
    client-stub classes. Is this possible ?
    -john

    Hi John,
    Have you considered using a WSDL generation GUI, such as
    http://www.omniopera.com/omniopera.html
    Bruce
    BTW, you do realize that when a webservice is deployed on WLS v7, the
    WSDL is available to anyone using
    http://<host>:<port>/<context_url>/<webservice>?WSDL
    john wrote:
    Bruce, I'm not sure how I would use those other tasks to obtain
    what I want. AFAIK, the only way to generate a WSDL for a service
    is to use the 'clientgen' task. And the clientgen task requires
    the actual webservice implementation in the form of a .ear
    file.
    In my case, I need to create WSDLs which I then pass on to
    my customers, for them to implement and host. Currently, to do
    this I have to myself implement the desired dummy webservice
    and then use clientgen to obtain the WSDL (along with the
    stubs etc ..)
    thanx
    -john
    Bruce Stephens <[email protected]> wrote:
    Hi John,
    In addition to the servicegen and clientgen ant tasks there are now
    several other narrowly focused ant tasks such as autotype, and
    source2wsdd. Check out the documentation:
    http://edocs.bea.com/wls/docs70/webserv/assemble.html#1011066
    Hope this helps,
    Bruce
    john wrote:
    My WL7 application invokes methods on external subscriber
    web-apps. I need to provide WSDLs for these external apps, since
    they'll be implemented by our customers.
    Currently, I create 'dummy' EJBs, then create .ears out of it,
    run 'servicegen' to create a dummy webservice, then run
    'clientgen' to create the WSDLs and the client stub classes
    that I'll finally use. I'd like to avoid some of the above
    steps. Ideally, I'd just create the appropriate Java interface
    classes, then use some tool to create the WSDL and the
    client-stub classes. Is this possible ?
    -john

  • Stub Generation - WSDL contains extensions

    Hey,
    I try to generate stubs with the wireless toolkit.
    The problem is that the WSDL contains extension tags like this:
    <xsd:complexType name="BusinessTransactionDocumentID">
        <xsd:simpleContent>
            <xsd:extension base="BusinessTransactionDocumentID.Content">
                <xsd:attribute name="schemeID">
                    <xsd:simpleType>
                        <xsd:restriction base="xsd:token">
                            <xsd:maxLength value="60"/>
                            <xsd:minLength value="1"/>
                        </xsd:restriction>
                    </xsd:simpleType>
                </xsd:attribute>
                <xsd:attribute name="schemeAgencyID">
                    <xsd:simpleType>
                        <xsd:restriction base="xsd:token">
                            <xsd:maxLength value="60"/>
                            <xsd:minLength value="1"/>
                        </xsd:restriction>
                   </xsd:simpleType>
               </xsd:attribute>
               <xsd:attribute name="schemeAgencySchemeAgencyID" type="AgencyIdentificationCode"/>
           </xsd:extension>
       </xsd:simpleContent>
    </xsd:complexType>I tried to replace the extension somehow but I couldn't find a way, that the request looks the same way as it does when I use my usual proxies.
    Is there a way that the stub generator can handle the extensions? How can I replace them, so it would work?
    Thanks in advance
    Regards
    Tina

    Hi John,
    Have you considered using a WSDL generation GUI, such as
    http://www.omniopera.com/omniopera.html
    Bruce
    BTW, you do realize that when a webservice is deployed on WLS v7, the
    WSDL is available to anyone using
    http://<host>:<port>/<context_url>/<webservice>?WSDL
    john wrote:
    Bruce, I'm not sure how I would use those other tasks to obtain
    what I want. AFAIK, the only way to generate a WSDL for a service
    is to use the 'clientgen' task. And the clientgen task requires
    the actual webservice implementation in the form of a .ear
    file.
    In my case, I need to create WSDLs which I then pass on to
    my customers, for them to implement and host. Currently, to do
    this I have to myself implement the desired dummy webservice
    and then use clientgen to obtain the WSDL (along with the
    stubs etc ..)
    thanx
    -john
    Bruce Stephens <[email protected]> wrote:
    Hi John,
    In addition to the servicegen and clientgen ant tasks there are now
    several other narrowly focused ant tasks such as autotype, and
    source2wsdd. Check out the documentation:
    http://edocs.bea.com/wls/docs70/webserv/assemble.html#1011066
    Hope this helps,
    Bruce
    john wrote:
    My WL7 application invokes methods on external subscriber
    web-apps. I need to provide WSDLs for these external apps, since
    they'll be implemented by our customers.
    Currently, I create 'dummy' EJBs, then create .ears out of it,
    run 'servicegen' to create a dummy webservice, then run
    'clientgen' to create the WSDLs and the client stub classes
    that I'll finally use. I'd like to avoid some of the above
    steps. Ideally, I'd just create the appropriate Java interface
    classes, then use some tool to create the WSDL and the
    client-stub classes. Is this possible ?
    -john

  • Clientgen in WL 81 giving problems for stub generation from WL91 WSDL

    Hi,
    I am very new to this forum and new to Weblogic too.
    Here is my problem. I generated a webservice from a Stateless Session bean using annotation in WebLogic 91. Used the "jwsc"/"wldeploy" to generate and deploy the webservice. Also generated the client stubs using "clientgen" in weblogic 91.
    Created a small web application using a single jsp and servlet (the servlet is where i invoke the service).
    Everything works fine till its weblogic 91.
    Now the problem. I need to make the jsp work from Weblogic 81. So I am trying to create the client stubs from the service endpoint WSDL on WebLogic 91 by using the deployed webservice URL.
    The clientgen in WL 81 is complaining that the "parameters" is already defined (Please see the error below".
    I would assume that BEA would have tested this scenario as it should be a no-brainer. So why does the cleintgen in WL 81 complain. Is there any other step or way that I am missing. I have tried all sorts of things before posting to this forum (like 1. generating the stubs using WSDL2JAVA using axis -- WebLogic 81 gives a null pointer exception 2. generating the client stubs using "clientgen" in WL 91 and trying to compile using the jdk 1.4 and using in WL 81 -- complains that the couldnot find something like jax-rpc._._.ServiceImpl
    Will be realy helpful if someone who had this kind of experience of someone from BEA can help me a little bit.
    Thanks in advance to all for your time.
    ERROR WHILE using CLIENGEN
    build-client:
    [clientgen] Generating client jar for http://localhost:7001/webservice/MAC/Metho
    dsAccessControl?WSDL ...
    [clientgen] WARNING: Map ['http://elexnet.bah.com/methods']:ArrayOfint_literal i
    ncompliantly with JAX-RPC, mapping to a Java array of .int
    [clientgen] WARNING: Map ['http://elexnet.bah.com/methods']:ArrayOfMethodUserTO_
    literal incompliantly with JAX-RPC, mapping to a Java array of com.bah.elexnet.s
    erver.to.MethodUserTO
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:15: par
    ameters is already defined in unArchiveUser(com.bah.elexnet.methods.UnArchiveUse
    r,com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder)
    [clientgen] public void unArchiveUser(com.bah.elexnet.methods.UnArchiveUser pa
    rameters, com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder parameters
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:21: par
    ameters is already defined in editUserRoles(com.bah.elexnet.methods.EditUserRole
    s,com.bah.elexnet.methods.holders.EditUserRolesResponseHolder)
    [clientgen] public void editUserRoles(com.bah.elexnet.methods.EditUserRoles pa
    rameters, com.bah.elexnet.methods.holders.EditUserRolesResponseHolder parameters
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:27: par
    ameters is already defined in getUsers(com.bah.elexnet.methods.GetUsers,com.bah.
    elexnet.methods.holders.GetUsersResponseHolder)
    [clientgen] public void getUsers(com.bah.elexnet.methods.GetUsers parameters,
    com.bah.elexnet.methods.holders.GetUsersResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:33: par
    ameters is already defined in addUserRoles(com.bah.elexnet.methods.AddUserRoles,
    com.bah.elexnet.methods.holders.AddUserRolesResponseHolder)
    [clientgen] public void addUserRoles(com.bah.elexnet.methods.AddUserRoles para
    meters, com.bah.elexnet.methods.holders.AddUserRolesResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:39: par
    ameters is already defined in archiveUser(com.bah.elexnet.methods.ArchiveUser,co
    m.bah.elexnet.methods.holders.ArchiveUserResponseHolder)
    [clientgen] public void archiveUser(com.bah.elexnet.methods.ArchiveUser parame
    ters, com.bah.elexnet.methods.holders.ArchiveUserResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:45: par
    ameters is already defined in changeSystemPassword(com.bah.elexnet.methods.Chang
    eSystemPassword,com.bah.elexnet.methods.holders.ChangeSystemPasswordResponseHold
    er)
    [clientgen] public void changeSystemPassword(com.bah.elexnet.methods.ChangeSys
    temPassword parameters, com.bah.elexnet.methods.holders.ChangeSystemPasswordResp
    onseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:51: par
    ameters is already defined in deleteUser(com.bah.elexnet.methods.DeleteUser,com.
    bah.elexnet.methods.holders.DeleteUserResponseHolder)
    [clientgen] public void deleteUser(com.bah.elexnet.methods.DeleteUser paramete
    rs, com.bah.elexnet.methods.holders.DeleteUserResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:57: par
    ameters is already defined in getUserRoles(com.bah.elexnet.methods.GetUserRoles,
    com.bah.elexnet.methods.holders.GetUserRolesResponseHolder)
    [clientgen] public void getUserRoles(com.bah.elexnet.methods.GetUserRoles para
    meters, com.bah.elexnet.methods.holders.GetUserRolesResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:20
    : parameters is already defined in unArchiveUser(com.bah.elexnet.methods.UnArchi
    veUser,com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder)
    [clientgen] public void unArchiveUser(com.bah.elexnet.methods.UnArchiveUser pa
    rameters, com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder parameters
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:39
    : parameters is already defined in editUserRoles(com.bah.elexnet.methods.EditUse
    rRoles,com.bah.elexnet.methods.holders.EditUserRolesResponseHolder)
    [clientgen] public void editUserRoles(com.bah.elexnet.methods.EditUserRoles pa
    rameters, com.bah.elexnet.methods.holders.EditUserRolesResponseHolder parameters
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:58
    : parameters is already defined in getUsers(com.bah.elexnet.methods.GetUsers,com
    .bah.elexnet.methods.holders.GetUsersResponseHolder)
    [clientgen] public void getUsers(com.bah.elexnet.methods.GetUsers parameters,
    com.bah.elexnet.methods.holders.GetUsersResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:77
    : parameters is already defined in addUserRoles(com.bah.elexnet.methods.AddUserR
    oles,com.bah.elexnet.methods.holders.AddUserRolesResponseHolder)
    [clientgen] public void addUserRoles(com.bah.elexnet.methods.AddUserRoles para
    meters, com.bah.elexnet.methods.holders.AddUserRolesResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:96
    : parameters is already defined in archiveUser(com.bah.elexnet.methods.ArchiveUs
    er,com.bah.elexnet.methods.holders.ArchiveUserResponseHolder)
    [clientgen] public void archiveUser(com.bah.elexnet.methods.ArchiveUser parame
    ters, com.bah.elexnet.methods.holders.ArchiveUserResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:11
    5: parameters is already defined in changeSystemPassword(com.bah.elexnet.methods
    .ChangeSystemPassword,com.bah.elexnet.methods.holders.ChangeSystemPasswordRespon
    seHolder)
    [clientgen] public void changeSystemPassword(com.bah.elexnet.methods.ChangeSys
    temPassword parameters, com.bah.elexnet.methods.holders.ChangeSystemPasswordResp
    onseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:13
    4: parameters is already defined in deleteUser(com.bah.elexnet.methods.DeleteUse
    r,com.bah.elexnet.methods.holders.DeleteUserResponseHolder)
    [clientgen] public void deleteUser(com.bah.elexnet.methods.DeleteUser paramete
    rs, com.bah.elexnet.methods.holders.DeleteUserResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
    198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:15
    3: parameters is already defined in getUserRoles(com.bah.elexnet.methods.GetUser
    Roles,com.bah.elexnet.methods.holders.GetUserRolesResponseHolder)
    [clientgen] public void getUserRoles(com.bah.elexnet.methods.GetUserRoles para
    meters, com.bah.elexnet.methods.holders.GetUserRolesResponseHolder parameters)
    [clientgen]
    ^
    [clientgen] 16 errors
    [clientgen] java.io.IOException: Compiler failed executable.exec
    [clientgen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
    ilerInvoker.java:470)
    [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
    er.java:328)
    [clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
    er.java:336)
    [clientgen] at weblogic.webservice.tools.build.internal.CompilerHelper.compi
    leFiles(CompilerHelper.java:80)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compil
    eStubs(ClientGenImpl.java:627)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.genera
    teStub(ClientGenImpl.java:572)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
    ntGenFromWsdl(ClientGenImpl.java:409)
    [clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
    ientGenImpl.java:340)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doC
    lientGen(ClientGenTask.java:351)
    [clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.exe
    cute(ClientGenTask.java:208)
    [clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
    [clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
    [clientgen] at org.apache.tools.ant.Main.main(Main.java:235)
    BUILD FAILED
    file:C:/Projects/OtherProjects/WL/soaws/build/build.xml:122: weblogic.webservice
    .tools.build.WSBuildException: Compiler failed executable.exec - with nested exc
    eption:
    [java.io.IOException: Compiler failed executable.exec]

    did you get a solution for this issue. I am trying to generate a stub to connect to a webservice i created by exposing my stateless session EJB as a web service, using annotations. I want to create a client stub using the clientgen from weblogic 81. I am unable to do this, do you have any solution to this.

  • Web service client stubs generation

    Hi,
    I try to generated model for WebDynpro application based on Web service (deprecated). WSDL file is valid. Stub classes generation is completed with compilation error. I found that the generator builds strange method for CMapLayerField complex type. There is setter with java.util.List param for MapLayer field but no one exists for Metafields field. Why for? Metafields field has the same cardinality as MapLayer one. Please, take me advance. I don't understand generation mechanism. I tried Axis2 and no problem was. How to fix this problem? How can I use Axis2 WSDL2Java generator instead of SAP Schema to Java generator?
    The problem is below described in details. Compilation failed due to type cast error. The error message is:
    The method setMapLayer(CMapLayer) in the type CMapLayerField is not applicable for the arguments (CMapLayer[])
    Below I give some scrap from WSDL and generated Java class.
    WSDL
    ==============
          <s:complexType name="CMapLayerField">
            <s:complexContent mixed="false">
              <s:extension base="tns:CTable">
                <s:sequence>
                  <s:element minOccurs="0" maxOccurs="1" name="Metafields" type="tns:CMetafields" />
                  <s:element minOccurs="0" maxOccurs="1" name="MapLayer" type="tns:CMapLayer" />
                  <s:element minOccurs="1" maxOccurs="1" name="MapLayerFieldIsName" type="s:int" />
                </s:sequence>
              </s:extension>
            </s:complexContent>
          </s:complexType>
    Generated API class for CMapLayerField type
    ==============================
    package com.test.model;
    public class ComplexType_CMapLayerField
    private com.test.model.proxies.types.CMapLayerField originalBean;
    //skipped
    private com.test.model.ComplexType_CMetafields metafields;
    /** sets the JavaWrapper in the relationship**/
    public void setMetafields(com.test.model.ComplexType_CMetafields arg)
         this.metafields = arg;           
    sets the original bean in the relationship
      public void setMetafields(com.test.model.proxies.types.CMetafields origBean)
         if(this.metafields == null)
              this.metafields = new com.test.model.ComplexType_CMetafields ();
         this.metafields.setOriginalBean(origBean);           
    private java.util.List _mapLayer = null;
    public void setMapLayer (java.util.List list)
         com.test.model.proxies.types.CMapLayer[] array = new com.test.model.proxies.types.CMapLayer[list.size()];
         for(int i=0;i<list.size();i++)
              com.test.model.ComplexType_CMapLayer item = (com.test.model.ComplexType_CMapLayer)list.get(i);
               array<i> = item.getOriginalBean();
         getOriginalBean().setMapLayer(array);
         this._mapLayer = list;
    public void setMapLayer (com.test.model.proxies.types.CMapLayer[] args)
         if(_mapLayer == null) _mapLayer = new java.util.ArrayList();
         if (args == null ) return ;
         for(int i=0;i<args.length;i++)
              com.test.model.ComplexType_CMapLayer wrapper = new com.test.model.ComplexType_CMapLayer ();
              wrapper.setOriginalBean(args<i>);
              _mapLayer.add(wrapper);     
    //skipped
    Generated stub class for CMapLayerField type
    ===================================
    package com.test.model.proxies.types;
    public  class CMapLayerField extends com.test.model.proxies.types.CTable {
      //some line were skipped
      private com.test.model.proxies.types.CMetafields fMetafields;
      public void setMetafields(com.test.model.proxies.types.CMetafields _Metafields) {
        this._f_Metafields = _Metafields;
        this._f_hasMetafields = true;
      private com.test.model.proxies.types.CMapLayer fMapLayer;
      private boolean fhasMapLayer;
      public void setMapLayer(com.test.model.proxies.types.CMapLayer _MapLayer) {
        this._f_MapLayer = _MapLayer;
        this._f_hasMapLayer = true;

    Obsolete

  • Web Service Stub-generation with WTK

    Hi there,
    I hope someone can help me.
    I just deployed a webservice using Axis.
    WSDL: http://www.freewebs.com/sirpreis/CustomerWS.xml
    WSDD (for deployment): http://www.freewebs.com/sirpreis/customerWS-WSDD.xml
    The WS deploys fine, but now I want to generate stubs using the WTK stub generator. Unfortunately I get the following warnings:
    warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "getAccountBalance"
    warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "getAccountBalance"
    I don't know if that will become a problem...
    Well now, three classes + src are generated
    AuthSet.java/.class
    CustomerWS.java/.class
    CustomerWS_Stub.java/.class
    In my webservice, the method "getAccountBalance" gets an "AuthSet" (which is set up of a String pwd and an int userID) as argument
    (public int getAccountBalance(AuthSet auth) throws RemoteException {).
    In the CustomerWS_Stub.java now there is a method "getAccountBalance", but it gets the following:
    public int getAccountBalance(java.lang.String pwd, int userID) throws java.rmi.RemoteException {
    Can anyone help me with that? I don't know what to do :(

    Hi,
    I think its a problem of your wsdl-File. If you post it, it would be easier to find the problem. The wsdl-file don't provide the WS-I specifications.
    Steve

  • Web Service and Stub-generation with WTK

    Hi there,
    I hope someone can help me.
    I just deployed a webservice using Axis.
    WSDL: http://www.freewebs.com/sirpreis/CustomerWS.xml
    WSDD (for deployment): http://www.freewebs.com/sirpreis/customerWS-WSDD.xml
    The WS deploys fine, but now I want to generate stubs using the WTK stub generator. Unfortunately I get the following warnings:
    warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "getAccountBalance"
    warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "getAccountBalance"
    I don't know if that will become a problem...
    Well now, three classes + src are generated
    AuthSet.java/.class
    CustomerWS.java/.class
    CustomerWS_Stub.java/.class
    In my webservice, the method "getAccountBalance" gets an "AuthSet" (which is set up of a String pwd and an int userID) as argument
    (public int getAccountBalance(AuthSet auth) throws RemoteException {).
    In the CustomerWS_Stub.java now there is a method "getAccountBalance", but it gets the following:
    public int getAccountBalance(java.lang.String pwd, int userID) throws java.rmi.RemoteException {
    Can anyone help me with that? I don't know what to do :(

    Hi,
    I think its a problem of your wsdl-File. If you post it, it would be easier to find the problem. The wsdl-file don't provide the WS-I specifications.
    Steve

  • WebService WSDL generation : NoSuchElementException

    Hello,
    I am using JDeveloper for a short time now. I am already created simple web services successfully.
    But when I try to import a project from a colleague, which use the same version as me, each time i try to modify the list of Web Method (using properties on the webservice) or trying to create a new web service on the same project, I got the following error :
    An alert box with
    Title : Generation Error
    Message : generator error : java.utils.NoSuchElementException
    After this the .java port file is created but nor the wsdl neither the web service is modified/created.
    Reproducible : always on this project.
    I have try to recreate the project from source but this I got the same error.
    Versions :
    jdev: 10.1.3.4.0.4270
    jvm : 1.5.0_06
    This is very annoying because my dev environment is broken, and I don't know why and what to do.
    Any help is really welcome.
    Thanks in advance and have a nice week-end.

    Hi again,
    After spending almost all my friday to try to fix this problem, I finally find the solution today morning.
    It was because my jdeveloper was installed in "Program Files\jdeveloper"
    But if I locate jdeveloper into C:\jdeveloper\ the problem is solved !
    I was lost for a space :)

  • Incorrect stub generation using JDeveloper 10g (10.1.2.0.0)

    Dear all,
    I'm having some trouble with deserializing the WSDL hereunder:
    http://213.182.157.216/CarRentalAgentService12/CarRentalAgentService.asmx?WSDL
    If you look into this file, you'll see that there are two different schemas defined. When trying to generate the stub for it with with JDeveloper, it only creates the first schema's class (this is the only one with messages defined). The second disappears mysteriously... If I do the same using wsdl.exe from the MS VS .NET Framework, it creates the remaining classes without any problem. Anyone who has a clue in solving this (options for JDeveloper, updates, ... ?)

    Hi Peter,
    Unfortunately, there is no easy way to consume this WSDL using JDeveloper 10.1.2. Support for schema import is comming with the new 10.1.3 EA1 version, which is based on JAXRPC.
    All the best,
    Eric

Maybe you are looking for

  • The action cannot be completed, the connection to microsoft exchange is unavilable

    Hi, i was installed exchange 2013, when i am accessing a mail box over owa its working fine when i tried to connect though outlook 2013 getting error message action cannot be completed, The connection to the Microsoft exchange server is unavailable,

  • Imovie09 Burning to DVD from HD project file

    I have just burnt a HD edited imovie project file to a DVD using the 'large settings' in IDVD after exporting to media browser. The results when played on a DVD player are extremely low quality. There appears to be a considerable patterning affect on

  • Can you play videos on ipod nano??

    i bought a rob thomas video from itunes thinking it would play on it. did i just waste $1.99??

  • How can I cancel a download?

    I ordered the download of a TV series 'accidentally' (it was free!) without realizing how long it would take to download each video. Now I just want to stop this error permanently. How can I cancel a download from itunes? It keeps pausing but I don't

  • Adding/Managing Keywords Seems to be very difficult.....

    Has anyone else noticed in iPhoto 2011 that managing keywords seems to be terrible? If I add a keyword or delete it, sometimes it seems better to hit TAB when finished, but sometimes it's better to hit ENTER.  Sometimes when I need to remove a keywor