URGENT **** Need help for JAX-RPC Web Service Proxy deploy to OC4J 10.1.3.5

Hi everyone!
I’m really new to web services.
I’m getting a *500 internal server error* while deploying my JAX-RPC web service Proxy to an Oracle AS, in an OC4J, v. 10.1.3.5.0.
Running my client from my development environment (*jdeveloper 10g, 10.1.3.5.0*) everything functions correctly: from jdeveloper I can contact and use the web service defined by the following endpoint: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
I created a "try_ws_client.jsp" file that runs correctly from my local development environment jdeveloper (that uses an embedded oc4j, v. 10.1.3.5.0) but fails when run from the test server (Oracle AS, in an OC4J, v. 10.1.3.5.0), getting, as I mentioned a 500 internal server error, a white page in IE but with FF the message says: The’s an error in the servlet .....
Here's how I created the ws proxy and how I’m using it to consume the ws I mentioned.
1. I used the jdeveloper “Create Web Service Proxy” wizard (File > New > Business Tier > Web Services > Web Service Prox) and in the WSDL document URL I put: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
2. The operation ended without adding nothing to the web.xml file and creating the proxy files. One of them is: FederaMLOLSoapClient.java that have the WS exposed methods (es: public boolean createUser(String) ) + a “main” method with the example how to use this client to consume the WS.
public static void main(String[] args) {
try {
it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
System.out.println("calling " + myPort.getEndpoint());
// Add your own code here
} catch (Exception ex) {
ex.printStackTrace();
3. In FederaMLOLSoapClient.java I’ve create the method "tyIt":
public String tryIt(String username) {
try {
it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
if(myPort.createUser(String username)) {
return “O.K”;
} else {
return “K.O”;
} catch (Exception ex) {
// logs error
4. I created my try_ws_client.jsp file that creates FederaMLOLSoapClient object and calls the tryIt method, printing the “OK” or “KO” message.
<%@ page import="it.reggiocity.provincia.biblioreggiane.*"%>
<%
String message = "";
FederaMLOLSoapClient obj= new FederaMLOLSoapClient( );
message = obj.tryIt(“AAAAAA70R10H226H”);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<title>prova</title>
</head>
<body><%=message%></body>
</html>
The situation is:
My try_ws_client.jsp runs correctly from my jdeveloper and the user is created while creating app.ear and deploying it to my Oracle AS/OC4J as mentioned above, I get a 500 Internal Server Error.
Any idea to find a solution to this problem?
Please help.
Take care.
John M.

Hi,
you want to build the Web Service, or you want to consume the Service as a client? If the latter, Web client (ADF?) or Java client?
Frank

Similar Messages

  • How to generate JAX-RPC web services instead of JAX-WS webservices withOEPE

    How to generate JAX-RPC web services instead of JAX-WS webservices withOEPE? I am asking this because I need to pass xmlbeans generated objects as arguments in the web method. For JAX-WS there has to be a no argument constructor for it to be able to pass in theweb method. The workshop 10.3 was able to pass the xmlbeans generated object as the web service was implemented as a JAX-RPC web service....

    Ok just as I expected. So I guess I am left with the following two options
    1) either I switched to using JAXB in my apps instaed of xmlbeans....
    2) or if I still wanna use the old JAX-RPC web services to deploy on the Weblogic 10gR3 server i will have to create my own ant task jwsc directly......as shown below in your docs
    Programming Web Services for WebLogic Server (ant tasks)
    http://download.oracle.com/docs/cd/E13222_01/wls/docs92/webserv/anttasks.html
    Getting Started With WebLogic Web Services Using JAX-RPC
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv_rpc/index.html
    Will OEPE be supporting the old JAX-RPC anytime in the near future release? or have to create own build ant task to call jwsc ant task directly to compile JAX-RPC web services??

  • Calling One Jax RPC Web Service from another in Oracle AS 10.1.3

    We have a number of services residing in the same Oracle 10.1.3 app server container. These are deployed as Jax RPC Web Services
    I am trying to figure out what are the different options to have once web service invoke an operation on another (without directly linking to the Java code). The reason we want to keep separation as far as possible is that these services may later migrate to different app servers and in the spirit of SOA all we want to change when a service migrates is address and would like everything else to remain the same.
    So for example, if Web Service A needs to invoke an operation X in web service B,
    One way to do this seems to be to generate a proxy for web service B, include the proxy in Web Service A and then simply do B.X() from Web Service A.
    Is this is the best way to do it ?
    Are there other alternative approaches available ? Such as using the built in ESB features of Oracle App Server 10.1.3?
    Any pointers will be greatly appreciated.
    Thanks
    RR

    Found document of 10.1.3.1.0 how to Creating a Custom Identity Service Plug-in
    Oracle® BPEL Process Manager Administrator's Guide
    10g (10.1.3.1.0)
    Part Number B28982-03
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/plugin.htm
    But may be no help.

  • Calling One Jax/rpc web service from another.

    We have a number of services residing in the same Oracle 10.1.3 app server container. These are deployed as Jax RPC Web Services
    I am trying to figure out what are the different options to have once web service invoke an operation on another (without directly linking to the Java code). The reason we want to keep separation as far as possible is that these services may later migrate to different app servers and in the spirit of SOA all we want to change when a service migrates is address and would like everything else to remain the same.
    So for example, if Web Service A needs to invoke an operation X in web service B,
    One way to do this seems to be to generate a proxy for web service B, include the proxy in Web Service A and then simply do B.X() from Web Service A.
    Is this is the best way to do it ?
    Are there other alternative approaches available ? Such as using the built in ESB features of Oracle App Server 10.1.3?
    Any pointers will be greatly appreciated.
    Thanks
    RR

    Hi all,
    I've managed to get this working by using the following property settings:
    System.getProperties().setProperty("http.proxyHost", "Proxy_Hostname");
    System.getProperties().setProperty("http.proxyPort", "8080");
    System.getProperties().setProperty("http.nonProxyHosts", "localhost,hostbox09");
    And solving the authentication problem using this property setting on the java cmd line:
    -Dweblogic.net.proxyAuthenticatorClassName=com.mycompany.MyProxyAuthenticator
    This class is an impl class of weblogic.common.ProxyAuthenticator interface.
    The other thing to note is that MyProxyAuthenticator needs to be in the server pre_classpath.
    Then I just call JAX-RPC or JAX-WS web service client calls as normal.
    Regards,
    Paul

  • Asynchronous JAX-RPC Web services

    In our application we would like to make a non-blocking call
    to a single web service ( so we don't need to use BPEL).
    Do you have a pointer to the document about creating Asynchronous JAX-RPC Web services and writing client code?
    Thanks!
    -- Qun

    Yes interoperability is the biggest advantage you get with JAX-RPC services.
    JAX-RPC spec (JSR 101) defines a standard way in which a web service should be written so that it interoperates between different application servers. It does away with the vendor specific api's and implementation of web services.
    Chandar

  • How to run a JAX-RPC web service

    I wrote the essential interface and classes to build a JAX-RPC web service, and I installed the J2SE 1.4.2 and Java Web Services Developer Pack 1.2 in Windows XP.
    I have read the Java Web Services Tutorial, but is so confusing for me.
    Anyone can provide the steps about the environment config, compile, package, and run the web service in Tomcat? thx

    I wrote these interface and class to create a simple web service:
    package test;
    import java.rmi.*;
    public interface HelloIF extends Remote {
    String sayHello(String s) throws RemoteException;
    package test;
    public class HelloImpl implements HelloIF {
    public String sayHello(String s) {
    return message + " " + s;
    I compiled these 2 and the *.class files exist in D:\backup\JAVA\fyp\test
    and then I wrote the config.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <service name="MyHelloService" targetNamespace="urn:Foo" typeNamespace="urn:Foo" packageName="test">
    <interface name="test.HelloIF" />
    </service>
    </configuration>
    I placed the config.xml in D:\backup\JAVA\fyp, then I type the following command:
    D:\backup\JAVA\fyp>wscompile -define config.xml -model model.gz
    the system response is:
    error: RmiModeler error: java.lang.ClassNotFoundException: test$HelloIF
    what's wrong?

  • OC4j and JAX-RPC Web service.

    Hello every one,
    this is actually coming from :
    OC4j 9.0.3 CMP/CMR and MVCSoft.
    Is it possible to develope JAX-RPC webservice using sun jdk with OC4J ?
    How can I do it ?
    Thanks.
    Giuseppe.

    Hi,
    I should have said that:
    I'm stuck with 9.0.3 as the 10.0.3 is a preview
    and the final release is not available until
    next summer.
    I guess 10.0.3 should be better as it is compliant with J2EE 1.4 which should include JAXRPC support.
    The problem with 9.0.3 is that being compliant with J2EE 1.3 it does not directly support JAX-RPC.
    So I was wondering How to develop Jax-RPC web service using OC4J 9.0.3.
    Sorry for to having specified the version.
    Thanks.
    Giuseppe.

  • Cannot attach a WS-Policy to Jax-RPC Web Service

    I am having trouble trying to associate a WS-Security Policy with a BEA Jax-RPC Web Service?
    I am following the following procedure to try to associate a the policy:
    http://edocs.bea.com/wls/docs100/ConsoleHelp/taskhelp/webservices/ConfigureWSPolicyFile.html
    The problem is that when I navigate on the Administration Console to
    Deployments
    => AdapterAdminService (this is the name of my application)
    => com.gateway.admin.wsdl.v10.AdminImpl (this is the name of my Web Service)
    => Configuration
    => WS-Policy
    The Web console displays a stacktrace mentioning an "IndexOutOfBoundsException" :
    Error opening /jsp/webservice/WebServiceConfigurationWebServicePoliciesForm.jsp.
    The source of this error is java.lang.IllegalArgumentException: The property you provided 'contents' of form 'deploymentPlanForm' must not be set to null. at com.bea.console.taglib.html.TableTag.registerDataSet(TableTag.java:1588) at com.bea.console.taglib.html.TreeTableTag.doRegisterDataSet(TreeTableTag.java:49) at com.bea.console.taglib.html.TableTag.doStartTag(TableTag.java:1360) at jsp_servlet._jsp._webservice.__webserviceconfigurationwebservicepoliciesform._jsp__tag9(__webserviceconfigurationwebservicepoliciesform.java:498) at jsp_servlet._jsp._webservice.__webserviceconfigurationwebservicepoliciesform._jsp__tag8(__webserviceconfigurationwebservicepoliciesform.java:459) at jsp_servlet._jsp._webservice.__webserviceconfigurationwebservicepoliciesform._jsp__tag7(__webserviceconfigurationwebservicepoliciesform.java:416) at jsp_servlet._jsp._webservice.__webserviceconfigurationwebservicepoliciesform._jspService(__webserviceconfigurationwebservicepoliciesform.java:265) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454) at org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include(ScopedRequestDispatcher.java:119) at com.bea.netuix.servlets.controls.content.JspContent.beginRender(JspContent.java:551) at com.bea.netuix.servlets.controls.content.NetuiContent.beginRender(NetuiContent.java:363) at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:483) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:332) at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:306) at com.bea.netuix.nf.UIControl.render(UIControl.java:578) at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:482) at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146) at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:62) at jsp_servlet._framework._skeletons._default.__gridlayout._jspService(__gridlayout.java:285) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454) at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:123) at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72) at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65) at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:479) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518) at
    I have this issue with both IE7 and Firefox 2. My domain is a WLS 10.0MP1 domain and is deployed on my Windows XP laptop.
    I am generating the WS from WSDL with the following ant command:
              <wsdlc srcWsdl="${wsdl.location.path}/AdapterAdministration.wsdl"
                   destJwsDir="${gen.compiled.wsdl.dir}"
                   packagename="com.gateway.admin.wsdl.v10.server"
                   destImplDir="server_impl_example" />
    then
                   <jwsc     srcdir="${src.dir}" destdir="${dist.dir}" classpathref="project.class.path" debug="true">
                             <jws file="com/gateway/admin/wsdl/v10/AdminImpl.java"
                                  compiledWsdl="${gen.compiled.wsdl.dir}/AdapterAdministration_wsdl.jar" />
                        </jwsc>
    and finally, I deploy it with:
              <wldeploy action="deploy"
                   name="AdapterAdminService"
                   source="${dist.dir}/AdminImpl.war"
                   user="${wls.domain.user}"
                   password="${wls.domain.pwd}"
                   verbose="true"
                   stage="no"
                   upload="true"
                   adminurl="t3://${wls.domain.host}:${wls.domain.port}"
                   targets="${wls.domain.servername}" />
    Do you have any idea what might be wrong here?
    Thanks in advance,
    Svend

    Hi all,
    Some more information: I have created another very simple Jax-RPC Web Service, now using the @Policy annotation. The policy I specify is then correctly taken into account, but I still have the same symptom when I navigate to the Configuration => WS-Policy page on the Web Console (i.e., I cannot associate a WS-Policy to my WS with the Web Console)
    Beginning of the JWS file:
    @WebService(...)
    @WLHttpTransport(serviceUri = "", portName = "AdapterAdmin")
    @Binding(Binding.Type.SOAP12)
    @Policy(uri="Wssp1.2-Http-UsernameToken-Digest.xml")
    public class AdminImpl implements Admin {
    Ant task I use to build and deploy the service:
    <target name="build-service" depends="prepare">
              <mkdir dir="package"/>
              <mkdir dir="package/WEB-INF"/>
              <mkdir dir="package/WEB-INF/lib"/>
              <jwsc     
                   srcdir="${src.dir}"
                   destdir="package"
                   classpathref="project.class.path"
                   debug="true">
                   <jws
                        file="com/gateway/admin/wsdl/v10/AdminImpl.java"
                        contextpath="/AdminImpl2"
                        explode="true"
                   />
              </jwsc>
              <move todir="package/WEB-INF">
                   <fileset dir="package/com/gateway/admin/wsdl/v10/AdminImpl/WEB-INF"></fileset>
              </move>
              <move todir="package/META-INF">
                   <fileset dir="package/xsize/gateway/admin/wsdl/v10/AdminImpl/META-INF"></fileset>
              </move>
              <copy todir="package/WEB-INF/lib">
                   <fileset dir="${lib.dir}"
                                  includes="client-1.0.jar,
                                       tools.jar />
              </copy>
              <delete dir="package/com" />
              <jar destfile="${dist.dir}/simpleWS2.war" >
                   <fileset dir="package" />
              </jar>     
              <wldeploy action="deploy"
                   name="AdminService-withPolicyAnnotation"
                   source="${dist.dir}/simpleWS2.war"
                   user="weblogic"
                   password="weblogic"
                   verbose="true"
                   stage="no"
                   upload="true"
                   adminurl="t3://localhost:9001"
                   targets="AdminServer" />
         </target>
    "

  • Urgently  need help for parsing IP header

    Hi, could anyone tell which class I should use to parsing the IP header of a packet?
    Thanks many many times!

    > Hi, could anyone tell which class I should use to
    parsing the IP header of a packet?
    DatagramPacket?
    > Urgently need help for parsing IP header
    Don't flag your question as urgent, even if it is for you.
    * We all answer questions here voluntarily, in our leisure time. We do that because doing so is fun for us, because we enjoy helping people and having interesting discussions. Guess what, it is much less fun if it gets stressful. So the last thing you want to do to get us to answer your question is to pass your stress over to us.
    * People who are stressed and want a fast answer often don't even find the time to do the necessary research or to formulate their question in an easy to comprehend way. That's even less fun to work with. So you really don't want us to feel your stress. Instead you want to take your time to write a well formulated post that is fun to answer. The less likely it is for us to know that your question is urgent, the more likely you are to get a fast answer!
    * The simple notion that you want your post to be answered faster than those of the other members might feel rather unfair to some of us. Doubly so because often "urgent" questions actually are homework questions. Yours might be different, but someone who had bad experiences with this type of question might not read far enough to notice.

  • Can we include a JAXM servlet in JAX-RPC web service????????

    Can we include a JAXM servlet in JAX-RPC web service?
    If yes then how?
    If not then why?

    Hi,
    I found a link to getting handle to Request and response object here: http://edocs.bea.com/wls/docs103/webserv_rpc/jws.html#wp275820
    Thanks!

  • I need help sorting out how Web services work

    I'm getting pretty darn confused with all the new terms I have to learn to develop a web service.
    I want to deploy a simple java based web service on an IIS/ServletExec machine. To do so the documentation says I have to instal WSDP on the machine. Within a few seconds I get stuck.
    When I try to install wsdp 1.6 it asks for a web container. I thought ServletExec is a web container, but it does not recognize it. What is a web container then? Should I just pick one of their options?
    Sun Java System Application Server Platform Edition 8.1 Update 2 : What is this thingy? Doe it coem sith j2ee sdk already? If not, why?
    Sun Java System Web Server 6.1 Service Pack 3 : What is this> How does it differ from the former thingy?
    Tomcat 5.0 for Java WSDP 1.5 : Is this the Tomcat web app server? Does it stack on ServletExec?
    I've deployed web pages on ServletExec, but am quite bewildered by the hoard of terms and tools thrown at me by the documentation for web services. What do I really need? It doesn't seem it should require much more than a jsp page would require, but I keep seeing the list of jar files and the like grow.
    I need a web services for dummies that specifically deals with ServletExec and Java.
    - Extremely confused

    A Web container is a part of application server
    i.e a web container is contained in application server.
    So ServletExec already has a Web Container? All Web App Servers have a web container?
    A Web Server is responsible only for web related
    applications like JSP, Servlets, Web services, etc.
    but an appliocation server can deploy EJB's also.
    I thought the Web Server managed html and passed JSPs, Servlets, and Web Services on to the Web App Server. (With the exception of .NET type applications which run entirely on the front end Web Server). At least that is how we have our machine configured.
    IIS, the Web Server, runs on a machine outside the firewall. It serves up all static html pages. All references to dynamic html (JSPs and Servlets) are forwarded to a Servlet Exec instance, the Web App Server, on a machine behind the firewall.
    IIS can not process Web Services outside a .NET-type configuration. The documentation has led me to believe that I have to deploy a Java web service on a Web App Server like ServletExec.
    >
    Sun Java System Application Server Platform Edition 8.1 Update 2
    is an application server provided by sun.
    But the installation called it a web container. You just called it an applciation server. But you also said earlier that an applciation server is not a web container, but rather contains a web container. Should they have called it an applciation server.
    (Just to make sure - application server = web app server, right?)
    You can download bundle which contains j2eesdk
    and application server together or you can download
    seperately. Both these options are available on Sun's website.
    I do believe ServletExec comes with j2eesdk, as I was able to run servlets without installing it. Though I did install jdk 1.5 and use it as my virtual machine when running Java, including any servlets.
    Sun Java System Web Server 6.1 is responsible only
    for web related applications like JSP, Servlets, Web services
    etc but Sun application server 8.2 can deploy EJB's also.
    So Web Server 6.1 is a front end web server which also serves up JSPs without having to call an application server? You only need an application server if you want to do EJBs?
    Tomcat 5.0 for Java WSDP 1.5 : Is this the Tomcat web app server?WSDP containts several library files and other files
    which are necessary for running a web service.
    ( lib files for sending and recieving SOAP request and
    response i.e mail.jar activation.jar, saaj .jar ....etc).
    It is not an application server. It acts as a supportive
    role for creating and deploying web services.
    That's what I thought. But I also thought Tomcat 5.0 IS a web app server (wheras Apache is the Web Server). It says "Tomcat 5.0 for Java WSDP 1.5" which does not make sense to me. Iwould think it would say "Java WSDP 1.5 for Tomcat 5.0" instead. What exaclty are they offering to download? WSDP or Tomcat? And if Tomcat, why are they calling it a web container when it is an application server? WSDP is not a web container, right? just some lib files for supporting web services.
    Regards,
    Piyush- still quite confused but grateful for your comments

  • Planned support for JAX-WS web services?

    Are there any plans for JDeveloper to support JAX-WS web services in the near future (https://jax-ws.dev.java.net/)
    I know that I can just import the libraries and develop code from scratch, but it would be nice if I could actually run the code in OC4J!

    Hello,
    As you know Oracle is commiteed to industry standard and Java EE, so we are (inside OracleAS and JDeveloper team) involve in the standardization effort and well aware of the Glassfish/JAX-WS code and features.
    Today our priority is really on J2EE 1.4 and we have delivered great tooling and runtime with 10gR3.
    We are working on different evolutions around Web Services and Oracle stack such as support of more and more WS-*, more interoperability, additional annotations to provider better development experience; and as part of this overall effort JAX-WS is also included. So yes we are planning to support JAX-WS but not release date yet.
    RegardsTugdual Grall

  • Web Service proxy deployment and reuse

    Jdev. 11.1.1.4
    Hi,
    In my ADF application I have created a web service proxy with Jdev wizard.
    I have created a method in order to test it and it works ok.
    Now, I need to reuse this proxy (the package) in other java applications also in Jdev but working with struts (I don't thnk this is important but....)
    I have created a deployment profile only for the ws proxy package and generated a jar file.
    This jar file has been declared in the second application and try to execute the same method that worked in the first application.
    Just in the first sentence:
    UtilGestionDocumental utilGestionGrupos = new UtilGestionDocumental();
    we are having an "unauthorized error". No time to declare any username nor password that are send in later instructions.
    The first part of the call to the WS that we are using is this:
    UtilGestionDocumental utilGestionGrupos = new UtilGestionDocumental(); <- Here it throws the error
    SecurityPoliciesFeature securityFeatures =
    new SecurityPoliciesFeature(new String[] {
    "oracle/wss_username_token_client_policy" });
    UtilGestionDocumentalPortType entidadDocPortType =
    utilGestionGrupos.getUtilGestionDocumentalSOAP12Port(/*securityFeatures*/);
    ((BindingProvider)entidadDocPortType).getRequestContext().put(BindingProvider.USERNAME_PROPERTY,"Username");
    ((BindingProvider)entidadDocPortType).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY,"Password");
    ((BindingProvider)entidadDocPortType).getRequestContext().put(BindingProvider."EndPoint....." );
    I think I'm not using the correct system to create a jar for the WS, am I ?
    someone can help me with this ?

    Does any expert can help in deploying a web service proxy as a jar file ?

  • Need HELP passing raw SOAP to JAX-RPC Web Service

    Ive recently downloaded the web services development kit from the SUN site and have got all the examples to work fine.
    What I am now trying to do is pass RAW SOAP to the HelloWorld JAX-RPC example,
    Ive managed to get the service to call the sayHello function with no params which returns 'Hello NULL'.
    I can't however get any parameters to be passed to the sayHello function,
    Below is the existing SOAP ive got calling the function with no params.
    <?xml version="1.0"?>
    <soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><sayHello xmlns="http://hello.org/wsdl">????????????</sayHello></soap:Body></soap:Envelope>
    If anybody could tell me what I need to replace ???????????? with then I would be more than gratefull.
    P.s If I changed the webservice to accept multiple arguments what would I need to put in my SOAP?
    Yours,
    Cris.

    Thanks for your help on this one. However there is still one thing I don`t understand.
    In the example SOAP I posted on the orignal message I have added the namespace ns1 pointing to
    http://hello.org/wsdl
    The example you posted goes to http://caller.org/wsdl
    below is SOAP you posted for me.
    <env:Envelope xmlns: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:enc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:ns0="http://caller.org/wsdl"
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <env:Body>
    <ns0:sayHello>
    <String_1 xsi:type="xsd:string">some text</String_1>
    </ns0:sayHello>
    </env:Body>
    </env:Envelope>
    This returns me an error! However If I change ns0 to point to http://hello.org/wsdl it all works perfectly.....
    If you open a browser and go to http://hello.org/wsdl OR http://caller.org/wsdl neither URL points to anything!!!!!!! All the other namespaces used point to valid XML Schemas, which makes sense.
    So how can this SOAP message work if the namespace ns0 is nothing???????????
    Yours,
    Cris.

  • How to pass XMLNode to JAX-RPc web service

    I am new to web services using JAX-RPC.
    Here is my problem. I need to pass Node object from org.w2c.dom.Node to webservice (using JAX-RPC) and return canonicalBytes back to client.
    I know I cannot pass Node directly as a parameter to the method (checked Java Language Typed supported by JAX-RPC).
    So to cheat the system, I put in this Node object into a vector and then passed this vector to web service.
    Here is the exception:-
    java.rmi.RemoteException: serialization error: no serializer is registered for (class oracle.xml.parser.v2.XMLElement, null); nested exception is:
         serialization error: no serializer is registered for (class oracle.xml.parser.v2.XMLElement, null)
         at com.peppercoin.webservice.security.ISignatureVerification_Stub.getCanonicalBytes(ISignatureVerification_Stub.java:77)
         at HelloClient.main(HelloClient.java:29)
    Caused by: serialization error: no serializer is registered for (class oracle.xml.parser.v2.XMLElement, null)
         at com.sun.xml.rpc.encoding.DynamicSerializer.getSerializerForObject(DynamicSerializer.java:69)
         at com.sun.xml.rpc.encoding.DynamicSerializer.serialize(DynamicSerializer.java:52)
         at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.serialize(ReferenceableSerializerImpl.java:59)
         at com.sun.xml.rpc.encoding.soap.CollectionSerializer.serializeArrayElements(CollectionSerializer.java:72)
         at com.sun.xml.rpc.encoding.soap.CollectionSerializer.serializeArrayInstance(CollectionSerializer.java:55)
         at com.sun.xml.rpc.encoding.soap.CollectionSerializerBase.serialize(CollectionSerializerBase.java:98)
         at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.serialize(ReferenceableSerializerImpl.java:59)
         at com.peppercoin.webservice.security.ISignatureVerification_getCanonicalBytes_RequestStruct_SOAPSerializer.doSerializeInstance(ISignatureVerification_getCanonicalBytes_RequestStruct_SOAPSerializer.java:62)
         at com.sun.xml.rpc.encoding.ObjectSerializerBase.serialize(ObjectSerializerBase.java:100)
         at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.serialize(ReferenceableSerializerImpl.java:59)
         at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:441)
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:63)
         at com.peppercoin.webservice.security.ISignatureVerification_Stub.getCanonicalBytes(ISignatureVerification_Stub.java:60)
         ... 1 more
    Every works great as long as i put in strings in Vector.
    Is there a work around or did i miss anything, Please help
    I am using Oracle Parser
    Thanks
    Sagar Malisetti

    You can't "cheat the system" this way. The serializer for Vector is trying to find a serializer for the elements in the Vector instance that it received. So, it is trying to find a serializer for whatever is the the runtime type of your org.w3c.dom.Node. When it can't find such a serializer in the TypeMappingRegistry, it throws the exception.

Maybe you are looking for

  • Corrupted line items in Scheduling Agreement

    I have encountered an issue about Scheduling Agreements. Some items inside the SA's  are corrupted and shows Gross price conditions which should not be the case since this is a ZLP-type SA (SA for Planners). As consequence, when we GR for this materi

  • Hard Drives not sleeping SystemUIServer Hangs

    I have been having problems with SystemUIServer “Hanging” when I used either my scanner or digital card reader which are both connected via FireWire. USB devices didn’t do this. You could see that it was Hanging in the Activity Monitor window. I was

  • Adobe Forms and Allowing to Sign using Adobe Reader

    Dear, i am testing some scenario's with Adobe Interactive Forms. I have a Topaz Digital Signature Pad, which can be used to create a Signature inside a PDF file.  This has been tested and works.  This does not use a certificate, but puts a handwritte

  • Building code

    i'm having problems building the examples in the j2ee bookstore. when i run ant it gives me a whole bunch of errors. anybody else getting these errors?

  • BOXI R2 - Import Folder Rights

    Hi, Is it possible to transfer Folder Rights using Import Wizard? All content (Reports, Universe, Folders, Category etc..) looks OK from one server to another server by Import Wizard however folder rights seem not able to transfer properly... Are the