JAX-WS -- Force a wsimport generated ws client to use http POST method

I've used wsimport to generate a JAX-WS client for a wsdl and xsd bindings that were provided to me.
The basic implementation goes something like this.
URL serviceUrl = ...url to the live web service's wsdl (this will change often and needs to be data driven)
QName qname = new QName("thenamespace", "MyService")
MyService myService = new MyService(serviceUrl, qname);
At this point a http GET request is sent to the server which promptly spits back a "405: method not allowed" because it is only configured to accept the http POST method.
Unfortunately i cannot change this behavior and need a way to get the web service client to generate http POST requests.
Setting the following seemed to have no effect.
System.setProperty("javax.xml.ws.http.request.method", "POST");
Thanks!

so, keep the wsdl as a local resource and use a url for the local resource. then the service will not request the remote wsdl.

Similar Messages

  • WLS 8.1.4 - Generating WebService client with HTTP 1.1 protocol

    I tried to generated a web service client (Weblogic Workshop 8.1.4) from a WSDL.
    When I run this client I found that it uses HTTP 1.0 protocol (from access log)
    Is there a way (flag,...) to force the client to use HTTP 1.1 protocol ?
    Thanks
    Andrea

    martin ng wrote:
    any reply so far?....seems to me weblogic need to improve their support. Whenever i make a query eveything goes to Forum.Hi. I hope it's documented somewhere that these forums are not
    official BEA/WebLogic support. For quick official support, open
    a case with them at:
    http://www.bea.com/framework.jsp?CNT=index.htm&FP=/content/support/contacts/
    Joe

  • Generating Webservice using HTTPS in  XI.

    Hi Experts,
         I have generated webservice in XI using http , and i have tested using infopath soap client, its working fine.  I have generated webservice in XI using htpps using the same scenario,  when i am testing using infopath as soap client and tested, its giving error, request is not hitting the XI system at all. do i need to configure any certificate in infopath or in XI server, please can anyone advice. i have configured HPPTS without client authentication in SOAP adapter.
    Thanks,
    Dhanush

    Hi Experts,
      I am not able to get exact answer after reading the sap.help.com, sap notes.
    My scenario is RFC < ---> SOAP ( webservice) ,  i have generated webservice with the HTTPS and secured port of XI,  When i copy and past in IE browser, its showing status is OK,  but request is not hitting the XI system. what are things to be taken care at soap client and XI server side, do i need to install any certificats at client side or server side. please advice me.
    Thanks,
    Siva

  • Wscompile does not seem to be generating a client stub

    When I run the wscompile tool on a WSDL file generated using gSoap the wscompile tool does not generate the client stub. Instead it reports the following errors:
    warning: ignoring port "finsvc": no SOAP address specified
    warning: Service "finsvc" does not contain any usable ports
    The WSDL file and the config file is shown below (please note that the IP address has been changed to 255.255.255.255 in this example but when we ran wscompile it was a valid one):
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="finsvc"
    targetNamespace="http://www.xxxxxxxx.com/abcd/finsvc"
    xmlns:tns="http://www.xxxxxxxx.com/abcd/finsvc"
    xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
    xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nsfinsvc="http://www.xxxxxxxx.com/abcd/finsvc"
    xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
    xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
    <schema targetNamespace="http://www.xxxxxxxx.com/abcd/finsvc"
    xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
    xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nsfinsvc="http://www.xxxxxxxx.com/abcd/finsvc"
    xmlns="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="unqualified"
    attributeFormDefault="unqualified">
    <import namespace="http://www.w3.org/2003/05/soap-encoding"/>
    <complexType name="getFinStatusRequest">
    <sequence>
    <element name="lswebcmn-dept" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="lswebcmn-opr" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="lswebcmn-pwd" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="lswebcmn-func" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="lswebcmn-action" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="lswebcmn-option" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="lswebcmn-sessid" type="xsd:int" minOccurs="1" maxOccurs="1"/>
    <element name="ltnum" type="xsd:int" minOccurs="1" maxOccurs="1"/>
    </sequence>
    </complexType>
    <complexType name="getFinStatusRspLtdet">
    <sequence>
    <element name="ltnum" type="xsd:int" minOccurs="1" maxOccurs="1"/>
    <element name="ltnum1" type="xsd:int" minOccurs="1" maxOccurs="1"/>
    <element name="ltnum2" type="xsd:int" minOccurs="1" maxOccurs="1"/>
    <element name="ltname" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="ArrayOfgetFinStatusRspLtdet">
    <complexContent>
    <restriction base="SOAP-ENC:Array">
    <sequence>
    <element name="item" type="nsfinsvc:getFinStatusRspLtdet" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    <attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="nsfinsvc:getFinStatusRspLtdet[]"/>
    </restriction>
    </complexContent>
    </complexType>
    </schema>
    </types>
    <message name="getFinStatus">
    <part name="p-in" type="nsfinsvc:getFinStatusRequest"/>
    </message>
    <message name="getFinStatusRsp">
    <part name="lswebcmn-status" type="xsd:int"/>
    <part name="lswebcmn-statusmsg" type="xsd:string"/>
    <part name="ptrLtdet" type="nsfinsvc:ArrayOfgetFinStatusRspLtdet"/>
    </message>
    <portType name="finsvcPortType">
    <operation name="getFinStatus">
    <documentation>Service definition of function nsfinsvc__getFinStatus</documentation>
    <input message="tns:getFinStatus"/>
    <output message="tns:getFinStatusRsp"/>
    </operation>
    </portType>
    <binding name="finsvc" type="tns:finsvcPortType">
    <SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="getFinStatus">
    <SOAP:operation style="rpc"/>
    <input>
    <SOAP:body use="encoded" namespace="http://www.xxxxxxxx.com/abcd/finsvc" encodingStyle="http://www.w3.org/2003/05/soap-encoding"/>
    </input>
    <output>
    <SOAP:body use="encoded" namespace="http://www.xxxxxxxx.com/abcd/finsvc" encodingStyle="http://www.w3.org/2003/05/soap-encoding"/>
    </output>
    </operation>
    </binding>
    <service name="finsvc">
    <documentation>gSOAP 2.7.6d generated service definition</documentation>
    <port name="finsvc" binding="tns:finsvc">
    <SOAP:address location="http://255.255.255.255:18083"/>
    </port>
    </service>
    </definitions>
    And the config file used with the wscompile is as below:
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <wsdl location="./FINSVC.wsdl"
    packageName="com"/>
    </configuration>

    Thanks for the reply...
    C:\JavaProgFiles\jwsdp-2.0\jaxrpc\bin>wscompile -version
    JAX-RPC Standard Implementation (1.1.3, build R1)
    C:\JavaProgFiles\jwsdp-2.0\jaxrpc\bin>wscompile -verbose config.xml
    error: no mode was specified, please use one of -import/-define/-gen
    Usage: wscompile [options] configuration_file
    Use "wscompile -help" for a detailed description of options.
    C:\JavaProgFiles\jwsdp-2.0\jaxrpc\bin>wscompile -verbose -gen config.xml
    warning: ignoring port "finsvc": no SOAP address specified
    warning: Service "finsvc" does not contain any usable ports
    [ServiceInterfaceGenerator: creating service interface: com.Finsvc]
    [ServiceGenerator: creating service: com.Finsvc_Impl]
    [SerializerRegistryGenerator: creating serializer registry: com.Finsvc_SerializerRegistry]
    Since then we discovered the following:
    When I change the following line in the WSDL it works:
    From:
    xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
    To:
    xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
    It looks like wscompile (v1.1.3) works with Soap 1.1 WSDL only.
    When using wsimport instead all seems to work fine provided we change from rpc/encoded to document/literal.
    I guess that's the way to go...for Soap 1.2

  • Generated WS client is unable to unmarshal returned object array

    Hello,
    I have created web service using Sun jaxws implementation. Several methods of this ws return object array (CustomObj []). When I generate the client (using jaxws-maven-plugin - wsimport) and call these methods I always get
    empty array. I get no errors or warnings. When I generate axis client all works as expected. I think that this issue is related to jaxb but i have tried to switch between several versions ant this didn't help. CustomObj is very simple object with two attributes name and value...
    Thanks for hints...

    Hi Shepy,
    I think mapping an array of objects as response in WSDL messages is somewhat of an issue.
    Instead try moving this array of object into another XSD if i assume you are using XSDs and then make sure that response XSD holds and array of your objects.
    Regards,
    Anand

  • Using JarSettings to generate EJB client jar, but supported classes missed

    Appreciated for any comments in advance.
    I am using @jarSetting to generate EJB client jar file from workshop 9.2. The remote method of EJB has one input parameter that is defined as an interface. The interface is included in client jar, but the implementation of this interface is not.
    Please advise how I can add the implementation of this interface to client jar?
    Best Regards,
    James

    Hi James,
    I believe the algorithm for creating the client jar is to simply inspect the EJB interfaces using reflection and to include all user defined classes and exceptions that are referenced by the interfaces. In your case, it sounds like a class is not being included because it is not directly referenced by one of the EJB interfaces.
    I think the client jar creation algorithm can be described as "best effort" and unfortunately, it does not always end up including all classes needed by the client. I would recommend you add the additional classes manually using the jar tool.
    - Matt

  • Error while generating java client code from wsdl file

    I am trying to generate a java client code from WSDL file um_workflowSaveCreateProfile.wsdl which includes um_workflowSaveCreateProfile_interface.wsdl file, so I am keeping both the files in the same folder and trying to generate the client code but it is showing me the below error highlighted .
    um_workflowSaveCreateProfile.wsdl
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsd="E:/DIPPWF/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:oblix="http://www.oblix.com/" xmlns:obinterface="http://www.oblix.com/wsdl/um_workflowSaveCreateProfile_interface" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.oblix.com/wsdl/um_workflowSaveCreateProfile" targetNamespace="http://www.oblix.com/wsdl/um_workflowSaveCreateProfile">
         <import namespace="D:/DIPP/WSDL/um_workflowSaveCreateProfile_interface" location="um_workflowSaveCreateProfile_interface.wsdl"/>
         <service name="OblixIDXML_um_workflowSaveCreateProfile_Service">
              <port name="OblixIDXML_um_workflowSaveCreateProfile_Port" binding="obinterface:OblixIDXML_um_workflowSaveCreateProfile_Binding">
                   <soap:address location="http://localhost:7777/identity/oblix/apps/userservcenter/bin/userservcenter.cgi"/>
              </port>
         </service>
    </definitions>
    um_workflowSaveCreateProfile_interface.wsdl
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:oblix="http://www.oblix.com/" xmlns:oblixxmllocalschema="http://www.oblix.com/OblixXMLLocalSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.oblix.com/wsdl/um_workflowSaveCreateProfile_interface" targetNamespace="http://www.oblix.com/wsdl/um_workflowSaveCreateProfile_interface">
         <types>
              <xsd:schema targetNamespace="http://www.oblix.com/" elementFormDefault="qualified"
                   xmlns="http://www.oblix.com/"
                   xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                        <xsd:include schemaLocation="../XMLSchema/common_parameters.xsd" />
                        <xsd:include schemaLocation="../XMLSchema/common_authentication.xsd" />
                        <xsd:include schemaLocation="../XMLSchema/workflowSaveCreateProfile.xsd" />
              </xsd:schema>
              <xsd:schema targetNamespace="http://www.oblix.com/OblixXMLLocalSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                   <xsd:element name="request">
                        <xsd:complexType>
                             <xsd:sequence>
                                  <xsd:element name="params">
                                       <xsd:complexType>
                                            <xsd:sequence>
                                                 <xsd:element ref="oblix:ObWorkflowName"/>
                                                 <xsd:element ref="oblix:ObDomainName"/>
                                                 <xsd:element ref="oblix:ObWfComment" minOccurs="0"/>
                                                 <xsd:element ref="oblix:noOfFields"/>
                                                 <xsd:element ref="oblix:AttributeParams"/>
                                            </xsd:sequence>
                                       </xsd:complexType>
                                  </xsd:element>
                             </xsd:sequence>
                             <xsd:attribute name="version" type="xsd:string" use="optional"/>
                             <xsd:attribute name="application" type="xsd:string" use="required" />
                             <xsd:attribute name="function" type="xsd:string" use="required" />
                             <xsd:attribute name="mode" type="xsd:string" use="optional"/>
                        </xsd:complexType>
                   </xsd:element>
              </xsd:schema>
         </types>
         <message name="OblixIDXMLInput">
              <part name="authentication" element="oblix:authentication"/>
              <part name="request" element="oblixxmllocalschema:request"/>
         </message>
         <message name="OblixIDXMLOutput">
              <part name="body" element="oblix:Oblix"/>
         </message>
         <portType name="OblixIDXMLPortType">
              <operation name="OblixIDXML_um_workflowSaveCreateProfile">
                   <input message="tns:OblixIDXMLInput"/>
                   <output message="tns:OblixIDXMLOutput"/>
              </operation>
         </portType>
         <binding name="OblixIDXML_um_workflowSaveCreateProfile_Binding" type="tns:OblixIDXMLPortType">
              <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
              <operation name="OblixIDXML_um_workflowSaveCreateProfile">
                   <soap:operation soapAction="http://www.oblix.com/"/>
                   <input>
                        <soap:body use="literal"/>
                   </input>
                   <output>
                        <soap:body use="literal"/>
                   </output>
              </operation>
         </binding>
    </definitions>
    I am using WSDL2 Java for generating the client code .
    Please suggest where am I wrong .
    E:\axis2-1.4\bin>WSDL2Java -uri E:\DIPPWF\um_workflowSaveCreateProfile.wsdl -p R
    ND -d adb -s -o build\client--http-proxy-host 10.74.93.35 --http-proxy-port 80
    Using AXIS2_HOME: E:\axis2-1.4
    Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_02
    Retrieving document at 'E:\DIPPWF\um_workflowSaveCreateProfile.wsdl'.
    Retrieving document at 'um_workflowSaveCreateProfile_interface.wsdl', relative t
    o 'file:/E:/DIPPWF/um_workflowSaveCreateProfile.wsdl'.
    Retrieving schema at 'E:/DIPPWF/XMLSchema/common_parameters.xsd', relative to 'f
    ile:/E:/DIPPWF/um_workflowSaveCreateProfile_interface.wsdl'.
    Retrieving schema at 'E:/DIPPWF/XMLSchema/common_authentication.xsd', relative t
    o 'file:/E:/DIPPWF/um_workflowSaveCreateProfile_interface.wsdl'.
    Retrieving schema at 'E:/DIPPWF/XMLSchema/workflowSaveCreateProfile.xsd', relati
    ve to 'file:/E:/DIPPWF/um_workflowSaveCreateProfile_interface.wsdl'.
    Retrieving schema at 'navbar.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/workfl
    owSaveCreateProfile.xsd'.
    Retrieving schema at 'searchform.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/wo
    rkflowSaveCreateProfile.xsd'.
    Retrieving schema at 'component_basic.xsd', relative to 'file:/E:/DIPPWF/XMLSche
    ma/workflowSaveCreateProfile.xsd'.
    Retrieving schema at 'displaytype.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/c
    omponent_basic.xsd'.
    Retrieving schema at 'error.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/compone
    nt_basic.xsd'.
    Retrieving schema at 'component_workflowTicket.xsd', relative to 'file:/E:/DIPPW
    F/XMLSchema/workflowSaveCreateProfile.xsd'.
    Retrieving document at 'E:\DIPPWF\um_workflowSaveCreateProfile.wsdl'.
    Retrieving document at 'um_workflowSaveCreateProfile_interface.wsdl', relative t
    o 'file:/E:/DIPPWF/um_workflowSaveCreateProfile.wsdl'.
    Retrieving schema at 'E:/DIPPWF/XMLSchema/common_parameters.xsd', relative to 'f
    ile:/E:/DIPPWF/um_workflowSaveCreateProfile_interface.wsdl'.
    Retrieving schema at 'E:/DIPPWF/XMLSchema/common_authentication.xsd', relative t
    o 'file:/E:/DIPPWF/um_workflowSaveCreateProfile_interface.wsdl'.
    Retrieving schema at 'E:/DIPPWF/XMLSchema/workflowSaveCreateProfile.xsd', relati
    ve to 'file:/E:/DIPPWF/um_workflowSaveCreateProfile_interface.wsdl'.
    Retrieving schema at 'navbar.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/workfl
    owSaveCreateProfile.xsd'.
    Retrieving schema at 'searchform.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/wo
    rkflowSaveCreateProfile.xsd'.
    Retrieving schema at 'component_basic.xsd', relative to 'file:/E:/DIPPWF/XMLSche
    ma/workflowSaveCreateProfile.xsd'.
    Retrieving schema at 'displaytype.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/c
    omponent_basic.xsd'.
    Retrieving schema at 'error.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/compone
    nt_basic.xsd'.
    Retrieving schema at 'component_workflowTicket.xsd', relative to 'file:/E:/DIPPW
    F/XMLSchema/workflowSaveCreateProfile.xsd'.
    *[ERROR] More than one part for message OblixIDXMLInput*
    org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
    More than one part for message OblixIDXMLInput
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
    ence(WSDL11ToAxisServiceBuilder.java:1162)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
    ence(WSDL11ToAxisServiceBuilder.java:1085)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBindi
    ng(WSDL11ToAxisServiceBuilder.java:686)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
    int(WSDL11ToAxisServiceBuilder.java:538)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
    ints(WSDL11ToAxisServiceBuilder.java:489)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
    ce(WSDL11ToAxisServiceBuilder.java:363)
    at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA
    llServices(WSDL11ToAllAxisServicesBuilder.java:107)
    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
    ionEngine.java:147)
    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
    at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
    Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
    : Error parsing WSDL
    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
    ionEngine.java:153)
    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
    at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
    Caused by: org.apache.axis2.AxisFault: More than one part for message OblixIDXML
    Input
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
    ce(WSDL11ToAxisServiceBuilder.java:397)
    at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA
    llServices(WSDL11ToAllAxisServicesBuilder.java:107)
    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
    ionEngine.java:147)
    ... 2 more
    Caused by: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessin
    gException: More than one part for message OblixIDXMLInput
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
    ence(WSDL11ToAxisServiceBuilder.java:1162)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
    ence(WSDL11ToAxisServiceBuilder.java:1085)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBindi
    ng(WSDL11ToAxisServiceBuilder.java:686)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
    int(WSDL11ToAxisServiceBuilder.java:538)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
    ints(WSDL11ToAxisServiceBuilder.java:489)
    at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
    ce(WSDL11ToAxisServiceBuilder.java:363).
    Thanks in advance.
    akshay

    Hello,
    Were you able to resolve this issue ?
    I am seeing the same issue and at my wits end.
    regards
    Amit

  • Can we stop the server from generating a client jar

    When an EAR module is deployed, the server generates a large (a few MB) client jar inside the deployment directory. AFAIK this jar is never used for anything unless you have ACC clients. Please correct me if I'm wrong!
    Recently, we've had some worrying exceptions logged, indicating that there is a problem reading this client jar, and the context indicates that the server is attempting to set up a class loader for it. Everything works fine anyway.
    We have a few hundred EAR's deployed in each of our servers, and the EAR's contain on avarage about 30-40 entity beans, so you can imagine that we worry about every unnecessary resource allocation.
    Also, every exception logged requires attention from the admins so we would really like to get rid of these jars if we can, and if they are in fact unnecessary.
    TIA,
    Gunnar Grim

    Hello, Gunnar.
    You are correct that the generated jar is for launching clients using ACC. (Historically some users have taken the generated app client jar and added it to the classpath for non-ACC clients, but this is not an officially supported use of it.)
    You said that recently exceptions have been reported, which I assume means that this was not always true. It would seem that something in the environment or the applications has changed to trigger the exceptions. Identifying whatever that change has been might help identify the root cause of the new problem. Have you changed anything in the environment or the applications around the time the exceptions began appearing?
    Can you post an example of one of the exceptions you are concerned about?
    Also, what version of the product are you using?
    - Tim

  • Unknown namespace error when generating a client proxy

    We are using WAS 7.0 and I'm trying to generate a client proxy for an inhouse webservice via Object Navigator (SE80). When using the Wizard I get an error message from the Librabry Handler saying: "Unknown namespace: http://schemas.xmlsoap.org/soap/encoding".
    A check by the colleagues who provide this Webservice says that the wsdl is ok.
    Any idea for this error message?
    Many Thanks.
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://saphrmitarbeiterdaten.de.tnt.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://saphrmitarbeiterdaten.de.tnt.com" xmlns:intf="http://saphrmitarbeiterdaten.de.tnt.com" xmlns:soapenc="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.2.1
    Built on Aug 08, 2005 (11:49:10 PDT)-->
    <wsdl:types>
      <schema targetNamespace="http://saphrmitarbeiterdaten.de.tnt.com" xmlns="http://www.w3.org/2001/XMLSchema">
       <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
       <complexType name="SAPHRMitarbeiterDatenMitarbeiter">
        <sequence>
         <element name="Bukrs" nillable="true" type="xsd:string"/>
         <element name="Werks" nillable="true" type="xsd:string"/>
         <element name="Kostl1" nillable="true" type="xsd:string"/>
         <element name="Kostl2" nillable="true" type="xsd:string"/>
         <element name="Persk" nillable="true" type="xsd:string"/>
         <element name="Pernr" nillable="true" type="xsd:string"/>
         <element name="Nachn" nillable="true" type="xsd:string"/>
         <element name="Vorna" nillable="true" type="xsd:string"/>
         <element name="Eintr" nillable="true" type="xsd:string"/>
         <element name="Austr" nillable="true" type="xsd:string"/>
         <element name="Sacha" nillable="true" type="xsd:string"/>
         <element name="Sachn" nillable="true" type="xsd:string"/>
         <element name="IAKen" nillable="true" type="xsd:string"/>
         <element name="IABeg" nillable="true" type="xsd:string"/>
         <element name="IAEnd" nillable="true" type="xsd:string"/>
         <element name="Level" nillable="true" type="xsd:string"/>
         <element name="Stelle" nillable="true" type="xsd:string"/>
         <element name="Abtlg" nillable="true" type="xsd:string"/>
         <element name="Mgr_Pernr" nillable="true" type="xsd:string"/>
         <element name="Mgr_Name" nillable="true" type="xsd:string"/>
        </sequence>
       </complexType>
       <complexType name="ArrayOfSAPHRMitarbeiterDatenMitarbeiter">
        <complexContent>
         <restriction base="soapenc:Array">
          <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:SAPHRMitarbeiterDatenMitarbeiter[]"/>
         </restriction>
        </complexContent>
       </complexType>
      </schema>
    </wsdl:types>
       <wsdl:message name="ReadDataResponse">
          <wsdl:part name="ReadDataReturn" type="impl:ArrayOfSAPHRMitarbeiterDatenMitarbeiter"/>
       </wsdl:message>
       <wsdl:message name="ReadDataRequest">
          <wsdl:part name="in0" type="xsd:string"/>
          <wsdl:part name="in1" type="xsd:string"/>
          <wsdl:part name="in2" type="xsd:string"/>
          <wsdl:part name="in3" type="xsd:string"/>
       </wsdl:message>
       <wsdl:portType name="SAPHRMitarbeiterDatenRead">
          <wsdl:operation name="ReadData" parameterOrder="in0 in1 in2 in3">
             <wsdl:input message="impl:ReadDataRequest" name="ReadDataRequest"/>
             <wsdl:output message="impl:ReadDataResponse" name="ReadDataResponse"/>
          </wsdl:operation>
       </wsdl:portType>
       <wsdl:binding name="SAPHRMitarbeiterDatenReadSoapBinding" type="impl:SAPHRMitarbeiterDatenRead">
          <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
          <wsdl:operation name="ReadData">
             <wsdlsoap:operation soapAction=""/>
             <wsdl:input name="ReadDataRequest">
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://saphrmitarbeiterdaten.de.tnt.com" use="encoded"/>
             </wsdl:input>
             <wsdl:output name="ReadDataResponse">
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://saphrmitarbeiterdaten.de.tnt.com" use="encoded"/>
             </wsdl:output>
          </wsdl:operation>
       </wsdl:binding>
       <wsdl:service name="SAPHRMitarbeiterDatenReadService">
          <wsdl:port binding="impl:SAPHRMitarbeiterDatenReadSoapBinding" name="SAPHRMitarbeiterDatenRead">
             <wsdlsoap:address location="http://194.55.55.58:7001/SAPHRMitarbeiterDatenWebservice/services/SAPHRMitarbeiterDatenRead"/>
          </wsdl:port>
       </wsdl:service>
    </wsdl:definitions>

    Hi Michael,
    the use of soapenc:Array is not supported. There are other ways to declare arrays:
    -In a DESCRIPTION, array declarations MUST NOT extend or restrict the soapenc:Array type.
    -In a DESCRIPTION, array declarations MUST NOT use wsdl:arrayType attribute in the type declaration.
    -In a DESCRIPTION, array declaration wrapper elements SHOULD NOT be named using the convention ArrayOfXXX.
    -A MESSAGE containing serialized arrays MUST NOT include the soapenc:arrayType attribute.
    So you need to copy the WSDL file to a local file and edit it, afterwards, use it to generate the proxy.
    Maybe you should have a look at the following url:
    http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16556272
    I hope this will help you to solve the problem.
    Edited by: Duhan Bernhard on Nov 7, 2008 12:29 PM

  • WSImport - Jdeveloper and WSImport generating different code

    Hi,
    I am using ANT to generate the stubs of a WSDL via WSImport. I m finding that for certain WSDLs the port code is not getting generated and its giving me warnings as
    [WARNING] SOAP port "XYZDetailsPort": uses a non-standard SOAP 1.2 binding.
    [clientgen] line 33 of file:./XYZIHIDetailsWS.wsdl
    [clientgen]
    [clientgen] [WARNING] ignoring operation "XYZIHIDetails": message part does not refer to a schema element declaration
    [clientgen] line 15 of file:XYZIHIDetailsWS.wsdl
    [clientgen]
    [clientgen] [WARNING] Port "XYZIHIDetailsPort" does not contain any usable operations
    [clientgen] line 33 of file:XYZIHIDetailsWS.wsdl
    but its generating fine when I use the Jdeveloper wizard for generating web service proxy.
    What codegen tool does Jdev use? I used Weblogic Server's clientgen tool but the I found out that internally it uses wsimport. Any suggestions?
    I m using Jdeveloepr 11.1.1.5 OSX, OpenJDK.
    Regards,
    Ansuman
    Edited by: AnsumanRoy on Jan 5, 2012 2:02 PM

    Then the DB Schema is changed and the code needs to be modified in order to take advantage of the new schema.You should be able to use "Synchronize features" in Bc4J wizards (Rightmouse on Package node and select Sychronize... or edit individual entity and select "Synchronize" on the attributes panel).
    You may also want to see JDev online help - search for Synchronize
    Is it possible to use the Jdeveloper to modify the code to use the new schema without overwriting the customized code?Yes, designtime wizards do try to "preserve" your code. Let us know more on what kind of synchronized changes are leading to "removal" of custom code.
    Are there for example some special tags to add that Jdeveloper recognizes? no.

  • Generate Ejb client Jar

    Hi,
    I m working with Jdeveloper 10G and oracle 9IAS 9.0.3.
    I ve deployed an Ejb module on 9IAS
    I m now wondering how generate the EJB client jar (Stubs and interfaces )to access my EJB module from anywhere.
    Any Idea?

    I found the answer.
    specify the client jar name in the jar settings and the workshop will generate the client jar for you.
    inlcude the client jar and the wlclient.jar in the remote client application.

  • ClassCastException running JDev Generated EJB Client

    Hi,
    I'm trying to test a CMP entity bean I created by using the JDev903 generated TestClient class. First I run the EJB I want to test, then I attempt to run the Client class. I get a ClassCastException. The exception occurs on the call to PortableRemoteObject.
    How do I get this to run? I'm not sure how to get past this exception. Is there something else I need to run? Is there something that needs to be set in a config file.
    I kinda expected this to run outta da box.
    package Samplecom.ngit.iis.cmedia.cmptest;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import com.ngit.iis.cmedia.cmptest.Tcmmtpic;
    import com.ngit.iis.cmedia.cmptest.TcmmtpicHome;
    import java.util.Collection;
    import java.util.Iterator;
    import javax.naming.NamingException;
    public class TcmmtpicClient {
    public static void main(String [] args) {
    TcmmtpicClient tcmmtpicClient = new TcmmtpicClient();
    try {
    Context context = getInitialContext();
    TcmmtpicHome tcmmtpicHome = (TcmmtpicHome)PortableRemoteObject.narrow(context.lookup("Tcmmtpic"), TcmmtpicHome.class); <=== EXCEPTION OCCURS HERE ===>
    Tcmmtpic tcmmtpic;
    // Retrieve all instances using the findAll() method
    // (CMP Entity beans only)
    Collection coll = tcmmtpicHome.findAll();
    Iterator iter = coll.iterator();
    while (iter.hasNext()) {
    tcmmtpic = (Tcmmtpic)iter.next();
    System.out.println("tpic_cmvg_id = " + tcmmtpic.getTpic_cmvg_id());
    System.out.println("tpic_id = " + tcmmtpic.getTpic_id());
    System.out.println("tpic_sequence_no = " + tcmmtpic.getTpic_sequence_no());
    System.out.println("tpic_nm = " + tcmmtpic.getTpic_nm());
    System.out.println();
    } catch(Throwable ex) {
    ex.printStackTrace();
    private static Context getInitialContext() throws NamingException {
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    env.put(Context.PROVIDER_URL, "ormi://localhost:23891/current-workspace-app");
    return new InitialContext(env);
    Thanks,
    Art

    I was attempting to run this under JDev. I created a CMP from a table and then created the client to run it. I started the bean and then ran the client with the following result.
    The stack trace is listed below.
    C:\JDev903\jdk\bin\javaw.exe -ojvm -classpath J:\CM_SOURCE\workspaces\cmee\cmptest\classes;C:\JDev903\jdev\lib\jdev-rt.jar;C:\JDev903\j2ee\home\lib\activation.jar;C:\JDev903\j2ee\home\lib\ejb.jar;C:\JDev903\j2ee\home\lib\jaas.jar;C:\JDev903\j2ee\home\lib\jaxp.jar;C:\JDev903\j2ee\home\lib\jcert.jar;C:\JDev903\j2ee\home\lib\jdbc.jar;C:\JDev903\j2ee\home\lib\jms.jar;C:\JDev903\j2ee\home\lib\jndi.jar;C:\JDev903\j2ee\home\lib\jnet.jar;C:\JDev903\j2ee\home\lib\jsse.jar;C:\JDev903\j2ee\home\lib\jta.jar;C:\JDev903\j2ee\home\lib\mail.jar;C:\JDev903\j2ee\home\oc4j.jar;C:\JDev903\lib\xmlparserv2.jar;C:\JDev903\lib\xmlcomp.jar -Dhttp.proxyHost=spider.northgrum.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=*.ihsxtra.net|*.ihserc.com|*.logicon.com|*.grumman.com|*.northrop.com|*.northgrum.com Samplecom.ngit.iis.cmedia.cmptest.TcmmtpicClient
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
         java.net.ConnectException: Connection refused: connect
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
              RMIContext.java:134
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
              InitialContext.java:350
         void Samplecom.ngit.iis.cmedia.cmptest.TcmmtpicClient.main(java.lang.String[])
              TcmmtpicClient.java:20
    Process exited with exit code 0.

  • Generating EJB Client jars

    Hi,
    i want to know wheather there is any way to generate client jars for any specified ejb's in oracle 10g. In weblogic using appc generates a client jar that contains all required classes for the ejb's including the Stub implementation classes.
    I need the client jar's in order to make it available to a war file which does a lookup of these beans.
    Any ant taks that oracle provides for this??

    You need to deploy the class files specific to your client as well as the generated stubs for the EJB.

  • Generated either client or the server

    which logs can be generated either client or the server?

    I must be having a déjà vu... No, wait... you have posted this before:
    logs can be generated

  • Forcing Cisco VPN client to use NAT-T

    Is there a way to force the VPN client to use NAT-T when the device isn't NATed but ESP is otherwise blocked?
    My VPN client connects but tries to use ESP, even though IPSec over UDP is selected, after detecting that no NAT is taking place.

    Thanks. Using Linux's 'vpnc' as the VPN client provides a "force-natt" option which does the trick so a little disappointed I can't do it with the Cisco client.
    I also found references to a feature request #CSCdz58488 so I thought it may have been implemented in the current VPN client.

Maybe you are looking for

  • Error while creating dynamic Table

    Hi All, I have a node 'SEG' with 3 attributes, ATTR1.2.3, I am tring to crate dynamic table using this context node. Initialy i am displaying view with button, when click on this button i want to create table dynamically.. if click again one more tab

  • Owb beta 3 / master detail mapping with sequence ora-00936 error

    I'm not able to use sequence operator in mapping to create relationships between different record type from the same flat file. I have got an sql error ORA-00936: expression absente The problem seem to be the sequence is not referenced in the sql loa

  • When I import .mov file to Idvd I lose audio in certain clips

    The .mov file I can paly everything fine thru quicktime but on import to Idvd I lose audio on some of the clips. Why? all the boxes are checked on the I movie.

  • Oracle Java version 7

    Hi Guys After I upgraded my Macbook Pro to the latest java of Oracle Java ver7 update 9 I am stuck. I cannot luanch oracle from on an ERP V12 installation gettling the following error: FRM-92095: Oracle JInitiator version too low. I have try to follo

  • Server configuration EPM system

    Hi Experts, I want to install following Hyperion products on my distributed/mixed environments:- Oracle Hyperion Shared Services. Oracle Hyperion Planning. Oracle Hyperion Essbase. Oracle Hyperion Reporting and Analysis (Financial Reporting). Oracle