WS Stub generated by Jdev hangs.

Hi,
I managed to create a Web Service using
Jdeveloper. My Java WS class is a Stateless EJB.
I also tested it using the web browser.
then I tried to generate a stub and to call may method.
But when it gets to
Response response = call.invoke(endpointURL, "");
it hangs.
the server and the service is fine I can still use the web browser.
Could please anyone help me on this as soon as possible ?
cheers.

I seem to have the same problem with my WS Stub hanging on the call.invoke line. I know that it's running on port 8888, and it only seems to happen when it runs after someone's session is destroyed.
I'm wondering if I have to use the 'Proxy' class when running from within the same OC4J instanct, instead if the 'Stub'. The Stub is nice because you can use it from outside of OC4J too.

Similar Messages

  • Stub generated in Jdev9i for webservice with 'Vector' return type

    Hi,
    In the OAF page that I am developing, I am trying to consume a web service generated in SAP PI using Jdeveloper. My Jdeveloper version is 9.0.3.5(I need to use this version since I need to deploy the OAF page in EBS11i). The stub generated based on the WSDL is given below.
    import oracle.soap.transport.http.OracleSOAPHTTPConnection;
    import org.apache.soap.encoding.soapenc.BeanSerializer;
    import org.apache.soap.encoding.SOAPMappingRegistry;
    import org.apache.soap.util.xml.QName;
    import java.util.Vector;
    import org.w3c.dom.Element;
    import java.net.URL;
    import org.apache.soap.Body;
    import org.apache.soap.Envelope;
    import org.apache.soap.messaging.Message;
    * Generated by the Oracle9i JDeveloper Web Services Stub/Skeleton Generator.
    * Date Created: Tue Jan 25 16:12:55 IST 2011
    * WSDL URL: file:/C://Working/XXXXXXX/RegConsComplaint_OB.wsdl
    public class RegConsComplaint_OBServiceStub
      public RegConsComplaint_OBServiceStub()
        m_httpConnection = new OracleSOAPHTTPConnection();
      public static void main(String[] args)
        try
          RegConsComplaint_OBServiceStub stub = new RegConsComplaint_OBServiceStub();
          // Add your own code here.
        catch(Exception ex)
          ex.printStackTrace();
      public String endpoint = "http://XXXXXX:8000/sap/xi/...../RegConsComplaint_OB";
      private OracleSOAPHTTPConnection m_httpConnection = null;
      private SOAPMappingRegistry m_smr = null;
      public Vector RegConsComplaint_OB(Element requestElem) throws Exception
        URL endpointURL = new URL(endpoint);
        Envelope requestEnv = new Envelope();
        Body requestBody = new Body();
        Vector requestBodyEntries = new Vector();
        requestBodyEntries.addElement(requestElem);
        requestBody.setBodyEntries(requestBodyEntries);
        requestEnv.setBody(requestBody);
        Message msg = new Message();
        msg.setSOAPTransport(m_httpConnection);
        msg.send(endpointURL, "http://sap.com/xi/WebService/soap1.1", requestEnv);
        Envelope responseEnv = msg.receiveEnvelope();
        Body responseBody = responseEnv.getBody();
        return responseBody.getBodyEntries();
    }I am wondering whether I will be able to use this stub generated by Jdeveloper since the input type is 'Element' and return type is 'Vector'; while in the Jdeveloper documentation the supported "primitive XML Schema types and arrays of primitive XML Schema types as parameters and return values for web services" do not include either of the two.
    Regards,
    Sujoy

    Hi Sujoy
    I have been having big problems consuming microsoft sharepoint webservices using jDeveloper 9i.
    Problems with jdk version compatability with jDev and NTLM authentication (Sharepoint).
    so switching to db connection using utl_http.
    Can you pls send me the code set for reference at [email protected]
    thanks.
    Regards
    Sachin

  • How to use the build file generated by Jdev to automate bpel deployment

    Hi everyone I am trying to deploy bpel jar files and human task ear files using ant. When i use the ant which is generated by Jdev I am gettinng an error
    C:\Documents and Settings\254876\Desktop\BPEL_ANT>ant
    Buildfile: build.xml
    deployTaskForm:
    BUILD FAILED
    C:\Documents and Settings\254876\Desktop\BPEL_ANT\build.xml:39: Could not create
    task or type of type: deployTaskForm.
    Ant could not find the task or a class this task relies upon.
    This is common and has a number of causes; the usual
    solutions are to read the manual pages then download and
    install needed JAR files, or fix the build file:
    - You have misspelt 'deployTaskForm'.
    Fix: check your spelling.
    - The task needs an external JAR file to execute
    and this is not found at the right place in the classpath.
    Fix: check the documentation for dependencies.
    Fix: declare the task.
    - The task is an Ant optional task and the JAR file and/or libraries
    implementing the functionality were not found at the time you
    yourself built your installation of Ant from the Ant sources.
    Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
    task and make sure it contains more than merely a META-INF/MANIFEST.MF.
    If all it contains is the manifest, then rebuild Ant with the needed
    libraries present in ${ant.home}/lib/optional/ , or alternatively,
    download a pre-built release version from apache.org
    - The build file was written for a later version of Ant
    Fix: upgrade to at least the latest release version of Ant
    - The task is not an Ant core or optional task
    and needs to be declared using <taskdef>.
    - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
    defined it at the point of use
    Remember that for JAR files to be visible to Ant tasks implemented
    in ANT_HOME/lib, the files must be in the same directory or on the
    classpath
    Please neither file bug reports on this problem, nor email the
    Ant mailing lists, until all of these causes have been explored,
    as this is not an Ant bug.

    Ensure JDEV and SOA versions are in sync.

  • JDev hangs after click on event-tab in MW

    Hi all,
    I have problem with definition an descriptor-event in MW in JDev 10.1.2:
    When I define "tab" event on descriptor (none method selected yet), save and close JDev, after opening JDev and click on this "tab" event JDev hangs.
    Only Ctrl+Alt+Del works.
    Any idea?
    Thanks.
    Jara

    I am having a similar problem using the mapping workbench inside JDev 10.1.2.18.38
    In one of my pojo classes I extend DescriptorEventAdapter and implement the following method.
    public void postUpdate(DescriptorEvent event) {
    Rebuild, refresh, click on the event tab in the mapping workbench and it hangs. Have to Ctrl+Alt+Del.

  • Java ME 3.0 Web Services Stub Generator  Inheritance problem

    Hello,
    I have a problem with that relates to inheritance.
    Suppose I have abstract class User and class Member that extends class User.
    Suppose I have web service MyService:
    @WebService
    public class MyService {
    public User getUser(int id) {
    // do something
    When the server returns a Member instance instead of User I receive a MarshalException at the Client.
    The reason is " Invalid Element in Response:" + Member field that isn't part of User.
    I am using Java Me SDK 3.0 wscompile stub generator.
    I have also checked it with GlassFish stub generator wsimport and there the problem didn't appear.
    Ideas ?
    Thanks in advance,
    Raanan

    Seems like you are missing a necessary jar-file in your forms-classpath. Check the libraries attached to your project in Jdeveloper and add them to the path.

  • Why is the stub generated from the implementation and not the interface?

    Why is the stub generated from the implementation and not the interface?

    Because if a remote server object implements multiple remote interfaces, its stub must implement all the same remote interfaces. The only way to know which interfaces to implement is to examine the server object class.

  • Stub Generator Error

    I run Stub Generator in J2ME Wireless Toolkit 2.2.
    But.. I have a problem follow.
    addservice.Interface_Stub is not abstract and does not override abstract method _getPropertyNames() in javax.xml.rpc.Stub
    I don't know What is it..
    I need your help.. Plz, answer me.. :-)

    I'm having the same problem. I know for sure that the WSDL files contains correct information; I really cannot understand why the "Stub Generator" in the Wireless Toolkit 2.2 is not able to generate the stub.
    In my case is failing with a very simple web-service which has only one method with a String in input and another String in output.
    Please, follow up on this thread in case you find a solution.
    Thanks.

  • Stub Generator Error in J2ME

    I run Stub Generator in J2ME Wireless Toolkit 2.2.
    But.. I have a problem follow.
    C:\ImplementationCode\MSWS\src\addservice\AddIntegerIF_Stub.java:14: addservice.AddIntegerIF_Stub is not abstract and does not override abstract method _getPropertyNames() in javax.xml.rpc.Stub
    public class AddIntegerIF_Stub implements addservice.AddIntegerIF, javax.xml.rpc.Stub {
    ^
    1 error
    error: compilation failed, errors should have been reported
    I don't know What is it..
    I need your help.. Plz, answer me.. :-)

    I'm having the same problem. I know for sure that the WSDL files contains correct information; I really cannot understand why the "Stub Generator" in the Wireless Toolkit 2.2 is not able to generate the stub.
    In my case is failing with a very simple web-service which has only one method with a String in input and another String in output.
    Please, follow up on this thread in case you find a solution.
    Thanks.

  • JDev hangs when creating copy rule

    Hi,
    I try to build a simple BPEL prototyp using beta3. Sometimes, when I create a copy rule, jdev just hangs and I have to kill it via task manager (win xp). I suppose this only happens with quite "long" variable names in the expression builder?
    Has anyone experienced these hangs?

    Hi,
    I started trying Beta3 only. Didn't check in Eclipse by now.
    My configuration is: win xp SP2 (up tp date), 1GB RAM, BPEL beta3.
    I tried to create a copy rule for a variable named: ReadDBParams_ReadParamsServiceSelect_OutputVariable
    This freezes jdev all the time. Then I renamed the variable to: ReadDBParams_OUT
    This seems to work.
    The long variable name doesn't make that much sense, but it was generated by a witard like that, so it should work... :-)

  • Error calling php WS via Java client generated by JDev 10.1.3.2

    Hi guys.
    Gonna be a bit of a long one:
    I'm trying to generate a WS client for a php WS that was written for our use:
    The WSDL file looks as follows
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    - <definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:CMS" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:CMS">
    - <types>
    - <xsd:schema targetNamespace="urn:CMS">
    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
    - <xsd:complexType name="ArrayOfString">
    - <xsd:sequence>
    <xsd:element name="string" type="xsd:string" maxOccurs="unbounded" />
    </xsd:sequence>
    </xsd:complexType>
    - <xsd:complexType name="ArrayOfArrayOfString">
    - <xsd:sequence>
    <xsd:element name="ArrayOfString" type="tns:ArrayOfString" maxOccurs="unbounded" />
    </xsd:sequence>
    </xsd:complexType>
    - <xsd:complexType name="FragmentCheckInRequest">
    - <xsd:all>
    <xsd:element name="userName" type="xsd:string" />
    <xsd:element name="userPass" type="xsd:string" />
    <xsd:element name="fragData" type="xsd:base64Binary" />
    </xsd:all>
    </xsd:complexType>
    - <xsd:complexType name="FragmentCheckInReply">
    - <xsd:all>
    <xsd:element name="return" type="xsd:int" />
    </xsd:all>
    </xsd:complexType>
    - <xsd:complexType name="DataImportXMLRequest">
    - <xsd:all>
    <xsd:element name="userName" type="xsd:string" />
    <xsd:element name="userPass" type="xsd:string" />
    <xsd:element name="xmlData" type="xsd:base64Binary" />
    <xsd:element name="opts" type="tns:ArrayOfArrayOfString" />
    </xsd:all>
    </xsd:complexType>
    - <xsd:complexType name="DataImportXMLReply">
    - <xsd:all>
    <xsd:element name="return" type="xsd:int" />
    </xsd:all>
    </xsd:complexType>
    </xsd:schema>
    </types>
    - <message name="FragmentCheckInRequest">
    <part name="fragment" type="tns:FragmentCheckInRequest" />
    </message>
    - <message name="FragmentCheckInResponse">
    <part name="return" type="tns:FragmentCheckInReply" />
    </message>
    - <message name="DataImportXMLRequest">
    <part name="fragment" type="tns:DataImportXMLRequest" />
    </message>
    - <message name="DataImportXMLResponse">
    <part name="return" type="tns:DataImportXMLReply" />
    </message>
    - <portType name="CMSPortType">
    - <operation name="FragmentCheckIn">
    <documentation>Check in a Word file</documentation>
    <input message="tns:FragmentCheckInRequest" />
    <output message="tns:FragmentCheckInResponse" />
    </operation>
    - <operation name="DataImportXML">
    <documentation>Import XML data</documentation>
    <input message="tns:DataImportXMLRequest" />
    <output message="tns:DataImportXMLResponse" />
    </operation>
    </portType>
    - <binding name="CMSBinding" type="tns:CMSPortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="FragmentCheckIn">
    <soap:operation soapAction="urn:CMS#FragmentCheckIn" style="rpc" />
    - <input>
    <soap:body use="encoded" namespace="urn:CMS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    - <output>
    <soap:body use="encoded" namespace="urn:CMS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    - <operation name="DataImportXML">
    <soap:operation soapAction="urn:CMS#DataImportXML" style="rpc" />
    - <input>
    <soap:body use="encoded" namespace="urn:CMS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    - <output>
    <soap:body use="encoded" namespace="urn:CMS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    </binding>
    - <service name="CMS">
    - <port name="CMSPort" binding="tns:CMSBinding">
    <soap:address location="http://dtest.sun.ac.za/cms/cms/service/cms.php" />
    </port>
    </service>
    </definitions>
    I use Jdev 10.1.3.2 and generated the WS proxy, everything looks good. Then I go into the generated client and add in the following code:
    public static void main(String[] args) {
    try {
    cmswstest.proxy.CMSPortClient myPort = new cmswstest.proxy.CMSPortClient();
    System.out.println("calling " + myPort.getEndpoint());
    DataImportXMLRequest dr = new DataImportXMLRequest();
    String tmpXML =
    "<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>" +
    "<CMS_CURR_INFO_UPD>" +
    "<MSG_SEQ_NO>NATX_ 0000000000000200706201337193</MSG_SEQ_NO>" + "</CMS_CURR_INFO_UPD>";
    byte[] xmlb = tmpXML.getBytes();
    dr.setUserName("elmarm");
    dr.setUserPass("fud567");
    dr.setXmlData(xmlb);
    DataImportXMLReply repl = myPort.dataImportXML(dr);
    System.out.println("Length of XML message = " + repl.get_return());
    // Add your own code here
    } catch (Exception ex) {
    ex.printStackTrace();
    When I run the client, I get the following error message:
    calling http://dtest.sun.ac.za/cms/cms/service/cms.php
    java.rmi.RemoteException: Mime Header Content-Type: text/xml requires SOAP envelope namespace: http://schemas.xmlsoap.org/soap/envelope/; nested exception is:
         oracle.j2ee.ws.saaj.soap.SOAPVersionMismatchException: Mime Header Content-Type: text/xml requires SOAP envelope namespace: http://schemas.xmlsoap.org/soap/envelope/
         at cmswstest.proxy.runtime.CMSBinding_Stub.dataImportXML(CMSBinding_Stub.java:161)
         at cmswstest.proxy.CMSPortClient.dataImportXML(CMSPortClient.java:64)
         at cmswstest.proxy.CMSPortClient.main(CMSPortClient.java:38)
    Any ideas as to how to debug the situation. As is quite obvious, my experience with WS and SOAP is minimal at best :)
    Thanks for all the help.
    PS: I tried the same thing in Jdev 10.1.2 and got the following error:
    [SOAPException: faultCode=SOAP-ENV:Client; msg=Parsing error, response was:
    Expected &apos;EOF&apos;.; targetException=oracle.xml.parser.v2.XMLParseException: Expected 'EOF'.]
         at org.apache.soap.SOAPException.<init>(SOAPException.java:78)
         at org.apache.soap.rpc.Call.invoke(Call.java:312)
         at mypackage.CMSStub.DataImportXML(CMSStub.java:128)
         at mypackage.CMSStub.main(CMSStub.java:51)
    Elmar Matthee
    University of Stellenbosch
    South Africa

    Hi Vid,
    To be able to deploy Doc-literal Web services on 10.1.2, you have to select the J2EE 1.3 type of web services when you create the first Web Service of a project. Once you have create a 1.4 service, the dialogue is not displayed again for the given project.
    The other source you have is correct. the JAXRPC based type of Web service that is generated with JDeveloper 10.1.3 cannot be deployed on 10.1.2, as the new runtime is not available there.
    One way to get a Doc-lit service on 10.1.2 is described in Mike's blog [1]. THe WSDL file generated in 10.1.3 is a good start, as it will enable an easier migration to 10.1.3, once it's available.
    Hope this Helps,
    Eric
    [1] http://radio.weblogs.com/0132036/2003/12/07.html

  • Stub generator problem

    hi,
    I can't generate my stub classes from this wsdl file :
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
        name="YYYY"
        targetNamespace="http://www.XXXX.com/YYYY.wsdl"
        xmlns="http://schemas.xmlsoap.org/wsdl/"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        xmlns:tns="http://www.XXXX.com/YYYY.wsdl"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:xsd1="http://www.XXXX.com/YYYY.xsd1">
        <message name="authenticateRequest">
            <part name="Login" type="xsd:string"/>
            <part name="Password" type="xsd:string"/>
        </message>
        <message name="authenticateResponse">
            <part name="Return" type="xsd:boolean"/>
            <part name="UserID" type="xsd:string"/>
        </message>
        <portType name="YYYYPortType">
            <operation name="authenticate">
                <documentation>authentication method on YYYY information system</documentation>
                <input message="tns:authenticateRequest"/>
                <output message="tns:authenticateResponse"/>
            </operation>
        </portType>
        <binding name="YYYYBinding" type="tns:YYYYPortType">
            <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
       <operation name="authenticate">
                <soap:operation soapAction="capeconnect:YYYY:YYYYPortType#authenticate"/>
                <input>
                    <soap:body namespace="urn:YYYYsoapserver" use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
            </operation>
        </binding>
        <service name="YYYY">
            <port binding="tns:YYYYBinding" name="YYYYPort">
                <soap:address location="http://r-lnx-teacher/YYYY"/>
            </port>
        </service>
    </definitions>And the message error is not really helping me "stub generation failed"
    The toolkit example is working, though :
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://serverscript.org/wsdl" xmlns:ns2="http://serverscript.org/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="serverscript" targetNamespace="http://serverscript.org/wsdl">
      <types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://serverscript.org/types" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://serverscript.org/types">
          <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
          <complexType name="request">
            <sequence>
              <element name="String_1" type="string" nillable="true"/>
              <element name="String_2" type="string" nillable="true"/></sequence></complexType>
          <complexType name="requestResponse">
            <sequence>
              <element name="result" type="string" nillable="true"/></sequence></complexType>
          <element name="request" type="tns:request"/>
          <element name="requestResponse" type="tns:requestResponse"/></schema></types>
      <message name="Interface_request">
        <part name="parameters" element="ns2:request"/></message>
      <message name="Interface_requestResponse">
        <part name="result" element="ns2:requestResponse"/></message>
      <portType name="Interface">
        <operation name="request">
          <input message="tns:Interface_request"/>
          <output message="tns:Interface_requestResponse"/></operation></portType>
      <binding name="InterfaceBinding" type="tns:Interface">
        <operation name="request">
          <input>
            <soap:body use="literal"/></input>
          <output>
            <soap:body use="literal"/></output>
          <soap:operation soapAction=""/></operation>
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/></binding>
      <service name="Serverscript">
        <port name="InterfacePort" binding="tns:InterfaceBinding">
          <soap:address xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" location="http://sunwireless.quimbik.com:80/serverscript2/serverscript"/></port></service></definitions>but when I change the soap-binding-style attribute from document to rpc, it doesn't work anymore. And I found it weird that they use document, since according to wsdl spec (w3c) rpc is used for Request-Response operations... I also tried to write another version, with document instead of rpc, and it generated something alright, but my Interface was empty : no trace of the operation I described: not really useful.
    Any suggestion?
    Thanks

    J2ME Web Services supports only document/literal format, so that's the reason the stub cannot be generated.

  • WSDL type names generated by JDev 10.1.2 are prefixed by package name

    Is there a way to prevent JDeveloper to prefix type names with package name? Example:
    package a.test;
    public interface TestWS {
    public PublishType getType( String a) throws Exception;
    When Web Service is generates using this interface, WSDL will have something like:
    <complexType name="a_test_PublishType" jdev:packageName="a.test" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    Is there a setting to prevent this from happening?
    Thanks,
    Dejan

    By default <c:out/> tag "escapes" the output, option escapeXml is implicitly true
    To change this behaviour add the option: escapeXml="false"
    In your case:
    <c:out value="${bindings.InstituteDescription}" escapeXml="false"/>
    Hope it helped.
    Regards
    Fred

  • Possible BUG in 10.1.3 - JDev 'hangs' when creating Control Hints for EO

    I noticed that every time I want to add someting under Control Hints for myEO (and then click Apply ot OK) JDev basically hangs and I need to restart it by first killing the process.
    Afterwards, I have to go back to myEO and edit it again since the changes were not saved. Just before I open myEO I can see 'common' directory in the Application Navigator just under my 'businessobjects' package. However when I edit myEO and this time successfully click OK (or Apply) this directory is gone.
    I guess it has something to do with the creation of myEOImplMsgBundle.java file which for some reason hangs JDev.
    Anyone experienced similiar (same) issue?

    This has to do something with Java Code Generation Engine.
    I have just tried to create Row Impl file for my VO and gut 'hanged'.
    Anyone from Oracle?

  • Ksoap stub generator?

    Hello everyone,
    I just downloaded Sun Java Studio Enterprise 8.1, since I was told that it has a tool to generate ksoap stub from wsdl file, but I could not find out how? please shed some light on it, much appreciated.
    Many thanks!
    Hai

    Hai,
    Thank you for your interest in Sun-sponsored Java developer tools. If you want to use the latest Web and SOA application development tool technology on offer, it is highly recommended that Java developers download NetBeans 6.0 at http://www.netbeans.org/ . Through NetBeans IDE you will be assured of timely support in the future. I am not sure what you whish to do with Web Services in Web application development, but see http://www.netbeans.org/features/web/index.html for more information. In addition, if you are interested in SOA development see http://www.sun.com/products/soa/index.jsp .
    Please let us know if there are any further questions.
    Regards
    -Brad Mayer

  • About the stub generated by Jdev10.1.2

    hi,
    I generated the stub class by the Jdeveloper9i from the wsdl which is basic authentication, and it can invoke the web service. But when I updated the soap.jar from the Oc4j9.0.3X to the oc4j 10.1.2, the stub can not invoke the web service any more.
    So I did some testes.
    1. I create the web service which has not authentication.
    1.1 I generated the stub class by the Jdeveloper9.0.5.2. The stub class can invoke web servie.
    1.2 I generated the stub class by the Jdeveloper10.1.2. The stub class can also invoke web service.
    2. I create the web service which has basic authentication.
    2.1 I generated the stub class by the Jdeveloper9.0.5.2 and set the userName and password. The stub class can invoke web servie.
    2.2 I generated the stub class by the Jdeveloper10.1.2 and set the userName and password. But the stub class can not invoke web service. It throws the exeception likes below:
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type
    &quot;text/html&quot;, must be: &quot;text/xml&quot;. Response was:
    &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;
    &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;Yo
    u are not authorized to view this page&lt;/TITLE&gt;&lt;META HTTP-EQUIV=&quot;Content-
    Type&quot; Content=&quot;text/html; charset=Windows-1252&quot;&gt;&lt;STYLE
    type=&quot;text/css&quot;&gt;  BODY { font: 8pt/12pt verdana } H1 { font: 13pt/15pt verdana
    } H2 { font: 8pt/12pt verdana } A:link { color: red } A:visited { color: maroon }
    &lt;/STYLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE width=500 border=0
    cellspacing=10&gt;&lt;TR&gt;&lt;TD&gt;&lt;h1&gt;You are not authorized to view this
    page&lt;/h1&gt;You do not have permission to view this directory or page using the
    credentials that you supplied because your Web browser is sending a WWW-Authenticate header
    field that the Web server is not configured to accept.&lt;hr&gt;&lt;p&gt;Please try the
    following:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Contact the Web site administrator if you believe
    you should be able to view this directory or page.&lt;/li&gt;&lt;li&gt;Click the &lt;a
    href=&quot;javascript:location.reload()&quot;&gt;Refresh&lt;/a&gt; button to try again with
    different credentials.&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;HTTP Error 401.2 - Unauthorized:
    Access is denied due to server configuration.&lt;br&gt;Internet Information Services (IIS)
    &lt;/h2&gt;&lt;hr&gt;&lt;p&gt;Technical Information (for support personnel)
    &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Go to &lt;a href=&quot;http://go.microsoft.com/fwlink/?
    linkid=8180&quot;&gt;Microsoft Product Support Services&lt;/a&gt; and perform a title search
    for the words &lt;b&gt;HTTP&lt;/b&gt; and &lt;b&gt;401&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Open
    &lt;b&gt;IIS Help&lt;/b&gt;, which is accessible in IIS Manager (inetmgr), and search for
    topics titled &lt;b&gt;About Security&lt;/b&gt;, &lt;b&gt;Authentication&lt;/b&gt;, and
    &lt;b&gt;About Custom Error
    Messages&lt;/b&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&l
    t;/HTML&gt;]     at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)     at
    org.apache.soap.rpc.Call.invoke(Call.java:268)
    3.
    Then I compared the stub classes and found that the stub class generated from the
    Jdev9.0.5.2 has one codes in the stub constuctor while the stub class generated from
    Jdev10.1.2 has not.
    System.setProperty("oracle.soap.transport.noHTTPClient", "true");
    3.1
    Then I noted this code in the 9052 stub class and run it, it also threw the same the exception.
    3.2
    But I add this code in the 1012 stub class and run it, it threw another
    exception:java.lang.NullPointerException     at
    oracle.net.www.protocol.http.HttpURLConnection.<init>(HttpURLConnection.java:101)     at
    oracle.soap.transport.http.OracleSOAPHTTPConnection.getConnection
    (OracleSOAPHTTPConnection.java:1022)     at
    oracle.soap.transport.http.OracleSOAPHTTPConnection.post(OracleSOAPHTTPConnection.java:833)     
    at oracle.soap.transport.http.OracleSOAPHTTPConnection.send
    (OracleSOAPHTTPConnection.java:713)     at org.apache.soap.rpc.Call.invoke(Call.java:261)
    But I only change the soap.jar from 10.1.2 version to the 9.0.5.2 version and run this 1012 stub class after add that code, it can invoke the web service.
    4. Note: The stub class 9052 run in the Jdeveloper9.0.5.2 and the stub class 1012 run in the Jdeveloper10.1.2. They both don't use proxy server.
    Now we use oc4j 10.1.2 platform, and I cannot create the stub class to invoke the web service which is basic authentication. Colud you please help me solve this problem?
    Thanks & Best Regards!

    I have set REALM information which is get from the response in the TCP monitor, and it can invoke the web service.
    For the exception 2.2, maybe it is due to that web service is in Windows platform, then I can't get the REALM information from the TCP Monitor!
    Thanks

Maybe you are looking for