JDeveloper 11 g - JaxRPC issue of web service

Hello

I am developing a web service using JDeveloper 11 g v11.1.1.2.0 on windows. Here are the steps I followed:
< li > created a new generic Application
< li > created a web service project
< li > created a simple WSDL
< li > validated the WSDL
< li > click New
< li > Selected web Services categories.
< li > "Java Web Service from WSDL" Selected among the elements.
< li > Selected ' J2EE 1.4 JAX - RPC supported by 10.3 WLS
< li > select the WSDL document, I created
< li > provided a package for auto-generated classes and application name
< li > does not change the default values for the checkboxes in this window.
< li > didn't select all policies or define managers
< li > click Finish

Code added to the implementation of the class that is generated.
Started the WebLogic Server integrated - > click Run-> "Start Server Instance (IntegratedWebLogicServer).
A ran the implementation class

The service seems to be successfully deployed
< tt > [Demo Application deployed Server Instance IntegratedWebLogicServer] < /tt >
Target URL - http://localhost:7101 / demo-SampleRPC-context-root/PhoneNumberPort < /tt >

I've accessed the URL of the Mozilla browser and I try to test the two operations that I have in the WSDL file and I get the following error:
Unable to get the name of the incoming query operation

Here's the generated query:
< tt >
< env:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:env >
< env:Header / >
< env:Body >
< Phone > 1235551212 < / phone >
< / env:Body >
< / env:Envelope >
< /tt >

The response from the service:
< tt >
< env:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:env >
< env:Header / >
< env:Body >
< env:Fault xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" >
< faultcode > SOAP - ENV:Client < / faultcode >
< faultstring > cannot get the name of the incoming query operation < / faultstring >
< / env:Fault >
< / env:Body >
< / env:Envelope >
< /tt >

I get the same error when I create a client using the following ant script:
< tt >
< name target 'customer' = >
< clientgen wsdl="http://${wls.hostname}:${wls.port}/Demo-SampleRPC-context-root/PhoneNumberPort? WSDL.
DESTDIR = "${clientclass-dir}".
PackageName = "Oracle.communications.Platform.demo.WebServices.client"
Type = "JAXRPC" >
< / clientgen >
< javac srcdir destdir = "${clientclass-dir}" = "${clientclass-dir}" includes = "" * / *.java "classpathref ="taskdef.path"/ >"
< javac srcdir = 'src' destdir = includes="oracle/communications/platform/demo/webservices/client/**/*.java"/ "${clientclass-dir}" >
< / target >
< /tt >

Please let me know what I need to do to make this work.

Thank you
Sandrine

There still seems to be something wrong with the WSDL, and I made a mistake on the direction, you can remove entries from soapAction.

To fix the following steps:

(1) create new JDev app + generic project
(2) create WSDL via New Gallery (Web Services-> Document WSDL option) under the directory public_html/WEB-INF/wsdl + copy the following code:



container = "http://www.w3.org/2001/XMLSchema" xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/".
xmlns:MIME = "http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12 = "http://schemas.xmlsoap.org/wsdl/soap12/" >

























.. .note I deliberately cut the services and link nodes.

(3) save your changes, and then in the WSDL Editor, down down select the Design tab.
(4) in the designer, you will see the section completed port Types (and Messages If you develop the it), but not the section links and Services.
(5) slide the port in the links section type - displays the dialog box create a binding. For CPP you ask SOAP 1.1 and Message encoding set to 1, the PRC entries, click Ok.

.. .note here you see an option of JMS. I'm not experienced with JMS, but maybe it's what you want otherwise. However can advise first get your CPP example work can go to the option of JMS.

.. .second note, if you switch to source code view, you will see the entries of linking operation have a soapAction by values that are valid entry. That's what was causing your original error.

(6) now drag the Service binding and create the default and press ok.
(7) record everything, go back to your browser app and do a right click on the wsdl file, select Create Web Service - associated Assistant displayed
(8) step 2 of 7 in the selected Wizard option JAX - RPC, then selected finish
(9) right click JaxRPCService then Test Web Service
(10) wait for app to deploy (successfully), and then in the Http parser, test your web service.

With respect to the JMS, as mentioned above, I'm afraid I can't comment as I have no experience with it. There is a Service Web WLS OTN forum that can provide more assistance:

WebLogic Server - Web Services

CM.

Tags: Java

Similar Questions

  • jDeveloper WebService package installed, but the Web Service features are not available in the application wizard

    Hello

    I installed jDeveloper (Studio Edition Version 12.1.3.0.0) and also I installed some packages, for example the Web Service package. But when I create a new application project / I can't select for example of Web Service Client / Proxy and others. See photo:

    jdeveloper_webservices.png

    Do you know why? How can I make available?


    THX!

    Milan

    OK, I found it

    I created an application (Custom Java) with the empty project, and then I was able to add the web service client project (right click on the 'project' and select 'of the Gallery"). The same window appears as in my first post, but all features are available

    Thank you!

    Milan

  • Issue of Web services

    I use jdev 11.1.1.7.0

    I have a secure external wsdl. I'll have to call this service, to extract the information (it takes an entry) and display it in the page of the user interface? How do I get there? Should I generate ws proxy? How to make a secure connection? Thank you.

    Check out blog http://biemond.blogspot.co.uk/2009/04/jax-ws-web-service-proxy-client-and.html?m=1 of Edwin

    Timo

  • Issue of Web service

    Greetings,

    We have recently changed our ADFS security on some of our servers.  Unfortunately, now our PLM web services do not work on these servers.   Here is the error message I get when I try to set up a service for our web service client reference in Visual Studio.

    ---------------------------
    The HTML document does not have the Web service discovery information.

    Metadata contains a reference that is not resolved: ' https://99.999.9.999/integration/contracts/Prodika/nutrition/V25/NutritionService.svc

    The HTTP request is unauthorized with client authentication scheme 'Anonymous '. The server received authentication header was "Negotiate, NTLM."

    The remote server returned an error: (401) unauthorized.
    ---------------------------

    Any ideas on that?  I have to change the config settings somwhere API prodika?

    Thank you!

    Installation default PLM4P isn't, but web services extensibility Pack install files. You must copy the folder \web\Integration the Pack of extensibility, including the web.config file

  • Web Services issues in Coldfusion 8

    Hi all

    I'm trying to deploy .cfc files as web services in a coldfusion multiserver environment 8.  So far it works not so well.  Every time I have navigate to the .cfc file in a browser, the empty page .cgi scope and not documentation of the component.  If I add? WSDL to the URL, I get the code for the dumping of scope .cgi.   You also cannot manually register a web service in coldfusion administrator.  (the components that will be the web services are marked as access = "remote", these same .cfc files have been and are used in CF) 7.1

    Cfc in the CFIDE folder files use the cfcexplorer.cfc component and have the documentation of the component.

    -----------------------------------------------------------------

    My environment:

    3 x blades Sun Solaris T6300

    3 x 8 processors

    32 GB of RAM

    Hardware load balancer:

    Juniper DX

    Partition NAS/Web support for webroot

    ---------------------------------------------------------------

    Does anyone know of any issues with web services in CF 8 multi-server environment?  Why don't the .cfc and .cfc? WSDL dump the scope of cgi and show me the documentation of the element or the WSDL file?  Is there a setting I'm missing somewhere in order to allow web services?  Why can't study documentation of CFCs on a file in the root Web?

    Any help or idea would be greatly appreciated!

    Thanks in advance

    Steve

    There is nothing web service and multi host ColdFusion or ColdFusion 8 which must be radically different then standalone CF7 web services.

    Y at - there anychance there is an own Application.cfc file that may apply to the ColdFusion component files?  Note that any file in Application.cfc (or Application.cfm) between the SWC file and the root Directory apply to the code that runs the web service.  There is a witch hunt often neglected with some Application.cfc files that use the onRequest() method.  This method can interfere with normal delivery in response to a request from web service wsdl if this has not been posted to in the onRequest() method.

  • Consume peoplesoft Web services using Jdeveloper authentication failure

    Hello

    I use Jdeveloper 11 g to consume the webservice of peoplesoft and following the exact steps in the following article.
    http://www.Oracle.com/technology/tech/fmw4apps/PeopleSoft/OFM-PSFT-blog-postings.HTML#Web-services
    The Web service I use is different from the example I use the production version of the wsdl file.
    After following all the steps, the generated proxy creates not poseurs of the getter for user name, password (Basic authentication).
    Is it supposed to auto generate or what I need to encode?
    I did the code of the getter set username and password and provide the credentials, but I get an error authentication failed.

    java.rmi.RemoteException: SOAPFaultException - FaultString FaultCode [http://schemas.xmlsoap.org/soap/envelope/ {} Client.Authentication] [did not receive message weblogic.wsee.util.AccessException: a code of 401 error (unauthorized) was returned by the server to http://ps-dev-web.kc.lan:30710/PSIGW/HttpListeningConnector.] Please check that the username and password are set correctly and that you are authorized to access the requested method.
    -> Http://ps-dev-web.kc.lan:30710/PSIGW/HttpListeningConnector server returned a code of 401 error (unauthorized). Please check that the username and password are set correctly and that you are authorized to access the requested method.
    ] FaultActor detail [null] [< detail > < bea_fault:stacktrace xmlns:bea_fault = "http://www.bea.com/servers/wls70/webservice/fault/1.0.0" > weblogic.wsee.util.AccessException: a code of 401 error (unauthorized) was returned by the server to http://ps-dev-web.kc.lan:30710/PSIGW/HttpListeningConnector.] Please check that the username and password are set correctly and that you are authorized to access the requested method.
    at weblogic.wsee.connection.transport.http.HTTPClientTransport.handleErrorResponse(HTTPClientTransport.java:373)

    The code I used to generate getter, setter is

    -These methods have not generated-
    public String getPassword() {}
    (String) return ((heel) port). getProperty (Stub.PASSWORD_PROPERTY);
    }

    public void setPassword (String password) {}
    ((Heel) port). setProperty (Stub.PASSWORD_PROPERTY, password);
    }

    public String getUsername() {}
    (String) return ((heel) port). getProperty (Stub.USERNAME_PROPERTY);
    }

    {} public void setUsername (String username)
    ((Heel) port). setProperty (Stub.USERNAME_PROPERTY, username);
    }
    I don't know where I'm going wrong, credentials, I used the work normally but do not work with this application.
    I'd appreciate if I can get some light on this issue.

    Thank you
    Ash

    Published by: [email protected] on June 2, 2010 07:56

    In your case, the settings are not IN/OUT but OUTSIDE.
    To create the owner and get the values after the operation, you must do something like this:

    Create the parameters of the licensee
    Holder nt new holder =();
    Holder det holder new =();

    Make the call
    port.createCompIntfcKCMWEBCASECI (nt, det);

    Get the value
    System.out.println ("Value is" + nt.) Value();

    Thank you
    Vishal

  • JDeveloper 12.2.1.0.0 do not add the header of web service security

    Hello

    I write simple WebService Java Client to a simple wsdl.

    If I click with the right button on the WSDL file and say 'Test Web Service', a request was made for me by Jdeveloper, all I have to do is click the box include the username and password for SOAP Header-> Header WS:Security and under the "security-> UserNameToken" and my request now has a security header

    " < = xmlns:env env:Envelope ' http://www.w3.org/2003/05/soap-envelope "xmlns:ns1 =" " http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd "xmlns:ns2 =" " http://Oracle.apps.CTB.cdapersistence.types ">

    < env:Header >

    < ns1:Security >

    < ns1:UsernameToken >

    WebLogic < ns1:Username > < / ns1:Username >

    password < ns1:Password > < / ns1:Password >

    < / ns1:UsernameToken >

    < / ns1:Security >

    < / env:Header >

    < env:Body >

    < ns2:PersistCDADocumentRequest >

    < ns2:Document / >

    < / ns2:PersistCDADocumentRequest >

    < / env:Body >

    < / env:Envelope >

    I tried 3 separate ways to do it in my Java Web Service Proxy and all 3 have failed, the demand created by my java code does not include the security header and don't include that the < env:Header / > why are my bottom 3 attempts of creation of the grave security header down when they are means documented to supply security headers? Help, please

    Method 1:

    Map < String, Object > requestContext = (cDAPersistenceServicePortType) .getRequestContext ((BindingProvider));

    requestContext.put (BindingProvider.USERNAME_PROPERTY, "weblogic");

    requestContext.put (BindingProvider.PASSWORD_PROPERTY, "password");

    Methos 2:

    Map < String, Object > requestContext = (cDAPersistenceServicePortType) .getRequestContext ((BindingProvider));

    Map < String, List < String > > headers = new HashMap < String, List < String > > ();

    headers.put ("Username", Collections.singletonList ("weblogic"));

    headers.put ("Password", Collections.singletonList ("password"));

    requestContext.put (MessageContext.HTTP_REQUEST_HEADERS, headers);

    Methos 3:

    @Generated ("oracle JDeveloper")

    public static void setPortCredentialProviderList (map < String, Object > requestContext) bird Exception {}

    TODO - provides the required identification information values

    String username = "weblogic";

    String password = "password";

    credList.add (getUNTCredentialProvider (username, password));


    requestContext.put (WSSecurityContext.TRUST_MANAGER, new TrustManager() {}

    {public boolean certificateCallback (X509Certificate [] string, int validateErr)

    Boolean result =

    (string! = null & & chain.length > 0) & & (chain [0] (serverCert) .equals | chain [0] .equals (clientCert));

    return the result;

    Returns true;

    }

    });

    credList.add (getSAMLTrustCredentialProvider ());

    requestContext.put (WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credList);

    }

    @Generated ("oracle JDeveloper")

    public static CredentialProvider getUNTCredentialProvider (String username, String password) {}

    new return ClientUNTCredentialProvider (username.getBytes (), password.getBytes ());

    }

    @Generated ("oracle JDeveloper")

    public static CredentialProvider getSAMLTrustCredentialProvider() {}

    return new SAMLTrustCredentialProvider();

    }

    found an answer here - http://stackoverflow.com/questions/5976940/how-to-add-soap-header-in-java

  • How to get the IP address of the calling client to the web service built in Jdeveloper 11.1.1.7 application?

    I built an application of web service in Jdeveloper 11.1.1.7 to be used by other clients. Just the General steps as follows (Server web service Application is generated--> deployed on the server-> used by clients with the location of the WSDL file).

    Now, I met a requirement where I need to get the port number and IP address for the client.

    Questions :

    How to get the IP address of the calling client to the web service application generated in Jdeveloper?

    Commune technologies used to build web service applications is AXIS or CXF. What Jdeveloper technology use to built web service application?

    The common technologies used to build web service applications is AXIS or CXF. What Jdeveloper technology allows built web service application?

    It depends on the option selected during the creation of web services (if I remember correctly, there are several options, style J2EE 1.4 RPC style JavaEE JAX - WS 1.5,...)

    For example, to get the ip address of the compatible with jax - ws web service, you need to inject the context in your service class with:

    @Resource
    WebServiceContext wsContext;
    

    and then inside your method:

    MessageContext mc = wsContext.getMessageContext();
    HttpServletRequest req = (HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST);
    String ip = req.getRemoteAddr();
    

    Dario

  • How to consume web services REST in ADF - JDeveloper 11.1.1.6

    I have an ADF application deployed on Java cloud and I'm trying everything to try to get the data into it. I could not set up a connection to the Oracle Cloud server, to remedy this I created my db cloud instance RESTful web services. Now, I need to consume web services in my ADF application.

    Is there a way to link the ADF business components to RESTful web services in version 11.1.1.6?

    If not, then how is it possible to get data in your ADF application deployed on Java cloud? You cannot connect to the DB, you can not link to REST web services, how are you supposed to use your data?

    Thank you.

    Check out hands-on experience on Oracle products: deploy Oracle Cloud database objects using JDeveloper for the part of the database and hands-on experience on Oracle products: deployment of Applications in the cloud to Oracle using JDeveloper ADF on how to deploy an application in the cloud.

    Timo

  • JDeveloper Web Service Client/Proxy basic authentication

    Hi, I recently migrated a 10g Web Service to a Web Service that uses authentication of database 11g.

    Then I generated the proxy/client by using the WSDL for my consumer application in JDeveloper 11 g. However, I can't find all the functions that will allow me to set the user name and password to access the web service.

    For example, in 10g Client, I had simply to this:

    myPort = new SoapHttpPortClient();
    myPort.setUsername ("username");
    myPort.setPassword ("password");

    I don't know how to do the same thing in the Web Service client generated in 11g.

    Thanks in advance.

    Hello

    See the beginning of this blog entry: http://biemond.blogspot.de/2009/04/jax-ws-web-service-proxy-client-and.html

    Frank

    BTW. : I used Google

  • Cannot create the web service proxy in jdeveloper

    Hi all

    I'm unable to create a proxy web service by using the URL of the web service (https://domains.live.com/service/managedomain2.asmx?wsdl). I get an error saying "no WSDL not could be found. I am able to open the same URL in the browser. As the web service is secured by SSL, do I need to add anything on the jdeveloper to access this web service? Help, please


    Note: The web service must be called on https

    -MJ

    Hello

    The parameters are the proxy settings that are necessary for JDeveloper to connect to external sites - other than those available in the internal intranet.
    To connect to internet/external sites, you must have for this parameter. Here, as you try to connect to the external site - Windows live, you will need these settings.

    Thank you
    Nini

  • Problem with creating Web Service Client using Oracle JDeveloper

    Hi all

    I am trying to create a Web Service Client using Oracle JDeveloper. The property of the compiler of the project I updated JRE 1.4

    When I run the web service client, he gives me a lot of errors saying:
    ' Error (32.2): annotations are not supported in - source 1.4'

    I wonder why JDeveloper uses annotations even after that I set the compiler property to 1.4

    I'm following this link to create the Web service client:
    http://www.Oracle.com/technetwork/developer-tools/forms/WebServices-forms-11g-094111.html

    Any help in this regard would be greatly appreciated.

    Thank you
    Scott.

    Scott, when you run the proxy Web service in JDeveloper, you will see a bunch of jars listed in the classpath in the Journal JDeveloper window.
    All of these classes must be in the classpath of your server when the class is deployed there.
    Note that by default, I don't think they are going to be included in the JAR that you build for the proxy when you deploy.

  • How to call Web Services in JDeveloper

    Hi friends

    I m new in the ADF, I call the webservices in JDeveloper but I m stuck, suspicion would be very useful. Thanks in advance.


    Thank you
    Pratap

    Hello

    You can create a client for the web service (project right click-> New-> company Tier-> Web-> Web Service Proxy Services),
    or you can create a Web Service data control (project right click-> New-> company-> Web Services-> Web Service level data control).
    In both cases you must provide the URL of the web service.

    Check this for more details http://download.oracle.com/docs/cd/B31017_01/core.1013/b28764/web_services003.htm

    Pedja

  • Error trying to generate the WSDL of the Web service in JDeveloper 11.1.1.3

    Hey,.
    Whenever I try to generate a WSDL for a Web service, I get the following stack trace:

    java.lang.NullPointerException
    at oracle.jdeveloper.webservices.model.java.JavaWebServiceValidator.getTypeReasons(JavaWebServiceValidator.java:882)
    at oracle.jdeveloper.webservices.model.java.JavaWebServiceValidator.getInvalidValueTypes(JavaWebServiceValidator.java:1060)
    at oracle.jdeveloper.webservices.model.java.JavaWebServiceValidator.getValidationErrors(JavaWebServiceValidator.java:241)
    at oracle.jdeveloper.webservices.model.CoreHashStructureModel.validate(CoreHashStructureModel.java:187)
    at oracle.jdeveloper.webservices.model.generator.Validation.action(Validation.java:65)
    at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:143)
    at java.lang.Thread.run(Thread.java:619)

    I am able to run this webservice via run and debug, and 'Test this webservice.' It's only when I try to generate the WSDL file in jdeveloper I get this message. I'm even able to display the WSDL file in the browser by adding? WSDL at the end of the url for the web service endpoint. Any ideas?

    It is very possible that @XmlSeeAlso is not the only annotation that is causing problems to the jdev wsdl generator.
    You can try to remove all the relevant annotations and then add them both just to see that one is problematic, but even if you do not find
    What is the cause of the problems, you will have to wait until the next jdev release and hope it is fixed.
    The best thing for you to do is to file a bug with the support of the Oracle, to ensure that they are aware.

    Pedja

  • Publish as a Web Service option (PL/SQL) in 11 g JDeveloper 11.1.1.0.2

    Hello

    Im going to develop a Web Service of PL/SQL package.
    JDeveloper 10.1.3.1.0 it is an option that you can publish as Web Service directly from the pl/sql package diserable Navigation connections.
    In JDeveloper 11.1.1.0.2 is not such an option!
    There is another way to publish the Web Service of Pl/sql package?

    Thank you

    Hello

    The Pl/SQL Web services Wizard is back in the latest version of JDeveloper 11 g (11.1.1.2). You can download it here

    -Yogesh

Maybe you are looking for

  • TouchSmart 310 PC shut down

    My Touchsmart 310 computer keeps closing down again, every time I have a film/video or play a game. I noticed that on the back of the monitor (where the cpu is) becomes very hot when I watch videos or play games, and then will follow the closing. I t

  • I've been hacked? What should I do?

    A fake email went through all my contacts asking them to open an attachment.  I have pick up a virus?  I've been hacked? My mac pro has a virus scan on it?  What should I do? Thanks for the help!

  • Measurement Studio 8.6 Setup error

    Hi, I get an "unknown error" in an attempt to upgrade of measurement Studio 8.5 to 8.6, which causes the installation fails.  I tried to uninstall all products of OR, but this has not helped (error persists).  I use Visual Studio 2008 and 2005 (2005

  • HP dv7 Pavilion 2085el: HARD drive cable hp dv7 Pavilion 2085el

    I recently bought an SSD, but since I have 2 HDD/SSD slots I want to put my old HDD in the second slot. My question is what cables are compatible with my laptop, so I can connect the HARD drive.

  • OTA download fails to halfway through, Error 907 invalid cod

    Hey all, trying to get my application configured via the site, I downloaded cod of the child and the jad file and try to upload. Download pushing me, I say Yes and it starts but then it gets an error at a random in the download time as if maybe the c