WSDL = Java

Hello,
I'm trying to generate a client for a WS. The WSDL come from a aspx file. I have generate code with JDeveloper 9.x, but was missing to much class. I have generate code with WSDL2JAVA with eclipse.. I was missing information too, So i upgraded my wsdl2java and a new class have been created. This class named "HeaderSoap" is suppose to ben information contain in the header of SOAP. but I can't call that function from anywhere. So I generated the code for Jdev 10.X and i have more then i ever wanted! so i'm trying to use JDev but I have an error:
C:\JDeveloper\jdk\bin\javaw.exe -ojvm -classpath C:\JDeveloper\jdev\mywork\Application11\apppp\classes;C:\JDeveloper\lib\xmlparserv2.jar;C:\JDeveloper\xdk\lib\xml.jar;C:\JDeveloper\j2ee\home\lib\activation.jar;C:\JDeveloper\j2ee\home\lib\ejb.jar;C:\JDeveloper\j2ee\home\lib\jms.jar;C:\JDeveloper\j2ee\home\lib\jta.jar;C:\JDeveloper\j2ee\home\lib\mail.jar;C:\JDeveloper\j2ee\home\lib\servlet.jar;C:\JDeveloper\webservices\lib\jaxrpc-api.jar;C:\JDeveloper\webservices\lib\wsclient.jar;C:\JDeveloper\webservices\lib\wsserver.jar;C:\JDeveloper\webservices\lib\wssecurity.jar;C:\JDeveloper\webservices\lib\wsdl.jar;C:\JDeveloper\webservices\lib\orasaaj.jar;C:\JDeveloper\webservices\lib\saaj-api.jar;C:\JDeveloper\webservices\lib\orawsdl.jar;C:\JDeveloper\webservices\lib\orawsrm.jar;C:\JDeveloper\webservices\lib\jaxr_api.jar;C:\JDeveloper\webservices\lib\orajaxr.jar;C:\JDeveloper\webservices\lib\relaxngDatatype.jar;C:\JDeveloper\webservices\lib\jaxb-impl.jar;C:\JDeveloper\webservices\lib\jaxb-libs.jar;C:\JDeveloper\webservices\lib\xsdlib.jar;C:\JDeveloper\webservices\lib\mdds.jar;C:\JDeveloper\jlib\jaxen.jar;C:\JDeveloper\jlib\oraclepki.jar;C:\JDeveloper\jlib\ojpse.jar;C:\JDeveloper\jlib\osdt_core.jar;C:\JDeveloper\jlib\osdt_cert.jar;C:\JDeveloper\jlib\osdt_xmlsec.jar;C:\JDeveloper\jlib\osdt_wss.jar;C:\JDeveloper\jlib\osdt_saml.jar;C:\JDeveloper\jlib\repository.jar;C:\JDeveloper\jlib\ojmisc.jar;C:\JDeveloper\j2ee\home\lib\http_client.jar;C:\JDeveloper\j2ee\home\jazncore.jar;C:\JDeveloper\j2ee\home\oc4jclient.jar;C:\JDeveloper\rdbms\jlib\xdb.jar;C:\JDeveloper\diagnostics\lib\ojdl2.jar;C:\JDeveloper\jakarta-taglibs\commons-logging-1.0.3\commons-logging-api.jar;C:\JDeveloper\jakarta-taglibs\commons-logging-1.0.3\commons-logging.jar;C:\Librairie\jsse.jar mypackage.DestLotFichMecSoapClient
java.rmi.RemoteException: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: X509CertChainIncompleteErr; nested exception is:
     HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: X509CertChainIncompleteErr
     at mypackage.runtime.DestLotFichMecSoap_Stub.initierEnvoi(DestLotFichMecSoap_Stub.java:193)
     at mypackage.DestLotFichMecSoapClient.initierEnvoi(DestLotFichMecSoapClient.java:75)
     at mypackage.DestLotFichMecSoapClient.main(DestLotFichMecSoapClient.java:54)
Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: X509CertChainIncompleteErr
     at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:93)
     at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:89)
     at oracle.j2ee.ws.client.ClientTransportException.<init>(ClientTransportException.java:33)
     at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:131)
     at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:112)
     at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:166)
     at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:108)
     at mypackage.runtime.DestLotFichMecSoap_Stub.initierEnvoi(DestLotFichMecSoap_Stub.java:163)
     ... 2 more
Process exited with exit code 0.
I really need help! I can't make it work, please help me!
Thanks
Jonat

Have you tried JAX-WS, it supports 100% of schema. You can read and download JAX-WS from http://jax-ws.dev.java.net.

Similar Messages

  • WSDL - Java problem

    Hi all,
    I have been trying to generate a web service from a WSDL file (which, in my opinion, is the best way to create a web service when you don't already have a program). But there's some problems I run across which I can't seem to find the solution for.
    My traject should be: WSDL -> Java Files -> Compiling -> Deployment, where my primary WSDL should not be changed (or just endpoint address)
    I use JWSDP 1.2.
    1)
    When I try to replicate the helloservice, static stub example with my own WSDL file, I receive the following error:
    wscompile.bat -gen:server -d build -classpath build config-wsdl.xml
    error: generator error: no encoder for type "{http://www.w3.org/2001/XMLSchema}date" and Java type "java.util.Calendar"
    can anyone explain what this is?
    2)
    I tried -import and -keep instead of -gen:server, to get my Java files. This worked and created a lot of java files and even an implementation file, where I could create my webservice. So far it looked good, but after compiling and deploying, the service does not work. The problem is that the generated classes all have changed names (first letter lowercase, instead of uppercase), resulting in a non-working application.
    SEVERE: Exception sending context initialized event to listener instance of class com.sun.xml.rpc.server.http.JAXRPCContextListener
    java.lang.NoClassDefFoundError: MyService/MyProtocol_myOperation_ResponseStruct
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:217)
    at com.sun.xml.rpc.server.http.JAXRPCRuntimeInfoParser.loadClass(JAXRPCRuntimeInfoParser.java:150)
    Where myOperation in my WSDL file is called 'MyOperation'
    So now I'm stuck, can anybody help me or give me a step-by-step how to create a service

    Here's how I do it. I hope this won't annoy other people since this will be a long code post.
    1) Create the java interface: DateServiceInf.java:
    package MyService;
    import MyService.holders.*;
    public interface DateServiceInf extends java.rmi.Remote {
         public void setDate(java.util.Date date) throws java.rmi.RemoteException;
         public void getDate(DateHolder dholder) throws java.rmi.RemoteException;
    2) Create the java implementation: DateServiceImpl.java:
    package MyService;
    public class DateServiceImpl implements MyService.DateServiceInf{
         java.util.Date date = new java.util.Date();     //current date
         public DateServiceImpl() {
         public void getDate(MyService.holders.DateHolder dholder) throws java.rmi.RemoteException{
              dholder.setDate(date);
         public void setDate(java.util.Date date) throws java.rmi.RemoteException{
              this.date = date;
    3) Create the holder class: DateHolder.java
    package MyService.holders;
    public class DateHolder {
         private java.util.Date date;
         public DateHolder() {
              date = null;
         public java.util.Date getDate() {
              return date;
         public void setDate(java.util.Date date) {
              this.date = date;
    Compile the whole thing now.
    (you can skip to step 5 below)
    4) Using Apache axis to generate the wsdl file, assume the unzip axis1.1 is located at d:\axis-1_1 (windows bat file) and jdk at c:\j2sdk1.4.0: (make sure all files above are located in the proper directories (packages).
    @echo off
    set AXIS_HOME=d:\axis-1_1
    set AXIS_LIB=%AXIS_HOME%\lib
    set AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar;%AXIS_LIB%\wsdl4j.jar
    c:\j2sdk1.4.0\bin\java -cp %AXISCLASSPATH%;. org.apache.axis.wsdl.Java2WSDL -l"http://www.mycomp.com/MyService" -n "urn:MyService" -p"MyService" "urn:MyService" -o MyService.wsdl MyService.DateServiceInf
    Here is the generated file using axis:
    <wsdl:definitions targetNamespace="urn:MyService" xmlns:impl="urn:MyService" xmlns:intf="urn:MyService"
    xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns2="http://holders.MyService"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://holders.MyService">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <complexType name="DateHolder">
    <sequence>
    <element name="date" nillable="true" type="xsd:dateTime"/>
    </sequence>
    </complexType>
    </schema>
    </wsdl:types>
    <wsdl:message name="setDateResponse">
    </wsdl:message>
    <wsdl:message name="getDateResponse">
    </wsdl:message>
    <wsdl:message name="setDateRequest">
    <wsdl:part name="in0" type="xsd:dateTime"/>
    </wsdl:message>
    <wsdl:message name="getDateRequest">
    <wsdl:part name="in0" type="tns2:DateHolder"/>
    </wsdl:message>
    <wsdl:portType name="DateServiceInf">
    <wsdl:operation name="getDate" parameterOrder="in0">
    <wsdl:input name="getDateRequest" message="impl:getDateRequest"/>
    <wsdl:output name="getDateResponse" message="impl:getDateResponse"/>
    </wsdl:operation>
    <wsdl:operation name="setDate" parameterOrder="in0">
    <wsdl:input name="setDateRequest" message="impl:setDateRequest"/>
    <wsdl:output name="setDateResponse" message="impl:setDateResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="MyServiceSoapBinding" type="impl:DateServiceInf">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getDate">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="getDateRequest">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MyService"/>
    </wsdl:input>
    <wsdl:output name="getDateResponse">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MyService"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="setDate">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="setDateRequest">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MyService"/>
    </wsdl:input>
    <wsdl:output name="setDateResponse">
    <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:MyService"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="DateServiceInfService">
    <wsdl:port name="MyService" binding="impl:MyServiceSoapBinding">
    <wsdlsoap:address location="http://www.mycomp.com/MyService"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    5) Generate the wsdl using the Sun's implementation. Assume that the installation is located at: C:\j2sdkee1.4
    @echo off
    c:\j2sdk1.4.0\bin\java -cp . org.apache.axis.wsdl.Java2WSDL -l"http://www.mycomp.com/MyService" -n "urn:MyService" -p"MyService" "urn:MyService" -o MyService.wsdl MyService.DateServiceInf
    (those are 2 lines: echo and java)
    You may get a warning here.
    Here is the generated file from Sun:
    xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns2="http://www.mycomp.com/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema targetNamespace="http://www.mycomp.com/types" xmlns:tns="http://www.mycomp.com/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <complexType name="DateHolder">
    <sequence>
    <element name="date" type="dateTime"/></sequence></complexType></schema></types>
    <message name="DateServiceInf_getDate">
    <part name="DateHolder_1" type="ns2:DateHolder"/></message>
    <message name="DateServiceInf_getDateResponse"/>
    <message name="DateServiceInf_setDate">
    <part name="Date_1" type="xsd:dateTime"/></message>
    <message name="DateServiceInf_setDateResponse"/>
    <portType name="DateServiceInf">
    <operation name="getDate" parameterOrder="DateHolder_1">
    <input message="tns:DateServiceInf_getDate"/>
    <output message="tns:DateServiceInf_getDateResponse"/></operation>
    <operation name="setDate" parameterOrder="Date_1">
    <input message="tns:DateServiceInf_setDate"/>
    <output message="tns:DateServiceInf_setDateResponse"/></operation></portType>
    <binding name="DateServiceInfBinding" type="tns:DateServiceInf">
    <operation name="getDate">
    <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mycomp.com/wsdl"/></input>
    <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mycomp.com/wsdl"/></output>
    <soap:operation soapAction=""/></operation>
    <operation name="setDate">
    <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mycomp.com/wsdl"/></input>
    <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mycomp.com/wsdl"/></output>
    <soap:operation soapAction=""/></operation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/></binding>
    <service name="DateService">
    <port name="DateServiceInfPort" binding="tns:DateServiceInfBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>

  • IWAB0399E Error in generating Java from WSDL:  java.lang.RuntimeException:

    Hi,
    I did try to create web service client using eclipse. Imported wsdl to eclipse project and tried to create java client but I am getting following exception :
    IWAB0399E Error in generating Java from WSDL: java.lang.RuntimeException: Unknown element _value
    java.lang.RuntimeException: Unknown element _value
    at org.apache.axis.wsdl.toJava.JavaBeanWriter.getBinaryTypeEncoderName(JavaBeanWriter.java:490)
    at org.apache.axis.wsdl.toJava.JavaBeanWriter.writeSimpleTypeGetter(JavaBeanWriter.java:928)
    at org.apache.axis.wsdl.toJava.JavaBeanWriter.writeAccessMethods(JavaBeanWriter.java:1102)
    at org.apache.axis.wsdl.toJava.JavaBeanWriter.writeFileBody(JavaBeanWriter.java:238)
    at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
    at org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(JavaBeanWriter.java:1405)
    at org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.java:113)
    at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
    at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:547)
    at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:432)
    at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
    at java.lang.Thread.run(Unknown Source)
    This works just fine in SoapUI. Also can access this from other clients.
    You can access the wsdl fine from http://unit7165.oracleads.com:9008/opptyMgmtOpportunities/OpportunityService?wsdl
    Does anybody know why this does not work in Eclipse?
    Thanks.

    Hi Team,
    I am too getting same exception when trying to create client side code from wsdl.
    Below is what I am using :
    wsdl link :
    https://fap0607-crm.oracleads.com/mklLeads/SalesleadService?wsdl
    Tools I used : Apache Axis 1.4 jars and used command - wsdl2java
    I guess, it's a bug already reported here :
    https:/issues.apache.org/jira/browse/AXIS-1828
    Any pointer to this will help.
    Regards,
    Sumit

  • When change a WebService WSDL, Java WD crash

    Hi,
    I'm facing a problem that I can not fully comprehend. I'm going to explain it hoping for some answers...
    I have a WDynpro that call a custom SAP WebService. It works. perfectly.
    I change the SAP WebService adding a response field to the existing ones.
    I call the WDynpro again and it does not works anymore. I recevie a message like this
    "Probably runtime WSDL and design-time WSDL are inconsistent".
    Solution found is the foillowing. I change the webdynpro simply reimporting the WS model.
    Question is the following: If I add a field in the response of a WebService I need to reimport the model in ALL the Web Dynpros
    that use that service ? It sound very strange to me. That means that every change on a WebService correspond to a lot of changes to the DC's using that WebService.
    Please explain me....
    Thanks a lot.

    Hi,
    A WSDL represents the "Structure" of the Web Service that you are calling. That means, it defines the signature of the methods, which is the Input, output and exception parameters for each one of them.
    The WSDL is used for creation of the Web Service Model.
    Hence, whenever there is a change in the method signature of the Web Service, the WSDL is also modified, and thus the model.
    So it is true that, whenever you are modifying the request, response or the exception of the Web Service, you will need to re-import the Web Service Model. If this Web Service is used as model many DCs or Projects, then yes, it will be required to be re-imported.
    While technical  / programmatic changes in the method code does not require re-import.
    Regards,
    Alka.

  • Java Runtime exception while importing WSDL to PI 7.1

    Hi Experts,
    I am getting a weird java runtime error while importing the wsdl file to PI 7.1 ESR. I have checked the well formness of wsdl and its looks Ok, but some how while importing in PI ESR its giving following error log.
    Thrown:
    com.sap.aii.utilxi.misc.api.BaseRuntimeException: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.aii.utilxi.wsdl.api.WsdlHandler.parseWsdlWithOrderRearrange(Lcom/sap/aii/utilxi/xml/xdom/XElement;Z)Lcom/sap/aii/utilxi/wsdl/api/Wsdl;
    java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.aii.utilxi.wsdl.api.WsdlHandler.parseWsdlWithOrderRearrange(Lcom/sap/aii/utilxi/xml/xdom/XElement;Z)Lcom/sap/aii/utilxi/wsdl/api/Wsdl;
         at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:80)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
         at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
         at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
         at
    I am realy stuck now and replies are higjhly appreciated.
    Cheers,
    Raks

    check the wsdl file in xml spy software.
    chirag.

  • Error while Creating External definition with WSDL file

    Hi ALL,
    I need to create a External defination with a WSDL file in PI 7.1.so i selected the Option WSDL & From all available message defination while creating External defination  & imported the WSDL file.
    I am getting an error
    javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.aii.utilxi.wsdl.api.WsdlHandler.parseWsdlWithOrderRearrange(Lcom/sap/aii/utilxi/xml/xdom/XElement;Z)Lcom/sap/aii/utilxi/wsdl/api/Wsdl; java.lang.RuntimeException: java.lang.NoSuchMethodError:
    Note : i checked the WSDl file in altova its no error's ,i know there is no problem with the WSDL file ,i tried importing the same in other XI 3.0 system it has no problem.
    help me in solving this ..
    Regards
    Shakeif

    Hi Tony,
    Somehow I solved this issue. I dont remember what exactly I did, as it was sometime back in December. I think I used the Wizard initially to do the configurations in Solution Manager and again i tried to do the same manually as the earlier one threw some errors.
    It seems the wizard proceeded half-way through and hence the entry was made in the database already and hence that error.
    Anyways thank you for replying me.
    best regds,
    Alagammai.

  • Error when trying to create a web service from a wsdl file using jdeveloper

    Hello,
    I'm using the latest jdeveloper and jdk 6 update 20 on solaris sparc 10.
    When I'm trying to create a web service from a wsdl on the java EE 1.5 platform i get the following error:
    Validation failed:
    java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    I've tried the endorsed mechanism with the latest jaxws-api.jar and jaxb-api.jar packages with no help.
    It works fine when i use the java EE 1.4 platform....
    The full Error description:
    oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1635)+
    +     at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2846)+
    +     at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2611)+
    +     at oracle.jdeveloper.webservices.model.java.JavaWebService.setDescription(JavaWebService.java:745)+
    +     at oracle.jdevimpl.webservices.wizard.jaxrpc.topdown.TDJaxWsSpecifyWsdlPanel.setDescription(TDJaxWsSpecifyWsdlPanel.java:364)+
    +     at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.buildModel(SpecifyWsdlPanel.java:1109)+
    +     at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$5.run(SpecifyWsdlPanel.java:661)+
    +     at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)+
    +     at java.lang.Thread.run(Thread.java:619)+
    Caused by: oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.newWsdlValidationException(WsaAdaptor.java:825)+
    +     at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:515)+
    +     at oracle.jdeveloper.webservices.tools.WebServiceTools.getSeiInfo(WebServiceTools.java:523)+
    +     at oracle.jdeveloper.webservices.model.java.JavaWebService.getSeiInfo(JavaWebService.java:1741)+
    +     at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1496)+
    +     ... 8 more+
    Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:664)+
    +     at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createJAXWSModel(WsdlToJavaTool.java:475)+
    +     at oracle.j2ee.ws.tools.wsa.Util.getJaxWsSeiInfo(Util.java:1357)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)+
    +     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+
    +     at java.lang.reflect.Method.invoke(Method.java:597)+
    +     at oracle.jdevimpl.webservices.tools.wsa.Assembler$2$1.invoke(Assembler.java:218)+
    +     at $Proxy34.getJaxWsSeiInfo(Unknown Source)+
    +     at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:505)+
    +     ... 11 more+
    Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.getMRequired(AbstractField.java:186)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.annotateReference(AbstractField.java:209)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.annotate(AbstractField.java:164)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar.createField(AbstractFieldWithVar.java:75)+
    +     at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:89)+
    +     at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:76)+
    +     at sun.reflect.GeneratedConstructorAccessor53.newInstance(Unknown Source)+
    +     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)+
    +     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)+
    +     at com.sun.tools.xjc.generator.bean.field.GenericFieldRenderer.generate(GenericFieldRenderer.java:64)+
    +     at com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer.generate(DefaultFieldRenderer.java:75)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.generateFieldDecl(BeanGenerator.java:751)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:539)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:241)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:181)+
    +     at com.sun.tools.xjc.model.Model.generateCode(Model.java:286)+
    +     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:251)+
    +     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)+
    +     at oracle.j2ee.ws.common.tools.databinding.jaxb20.JAXB20TypeGenerator.generateJavaTypes(JAXB20TypeGenerator.java:117)+
    +     at oracle.j2ee.ws.tools.wsa.SchemaTool.genValueTypes(SchemaTool.java:186)+
    +     at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:647)+
    +     ... 20 more+
    Caused by: java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at java.lang.Class.getMethod(Class.java:1605)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.getMRequired(AbstractField.java:184)+
    +     ... 40 more+
    Thanks,
    Roy.

    Guys,
    You are asking about an issue that was a pain in the nick for me few months ago. The problem is that you won't find mych help here as I figured out that Apex geeks here either did not do much webservices or ended up hating it as i do :) . This is an error that can be due many different reason, let me ask you this:
    1- Does your the other system you are trying to call through webservices using HTTPS ?
    2- If yes, did you create a valid oracle wallet for that https connection ?
    3- Make sure you are using the correct URL ( am sure you do, just double check )
    4- If using a proxy, then you have to define that in the web service reference creation page
    provide more info and I hope I can help you with this,
    Sam
    Please reward good answers by marking them correct or helpful!

  • Java.rmi.RemoteException - on deploying a webservice through NWDS.

    Hi All,
    We have created and successfully build a webservice application in NWDS.
    Now when the activity is activated in Activation view, the build goes fine but deployment gets aborted with the following error:
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application syngenta.com/crmws~usprvwebservice..
    Reason: Webservices common deployment exception! The reason is: Error occurred, trying to update web services for application
    The Runtime system is on SAP J2EE ENGINE CORE 7.00 - SPS 19.
    For the same issue i checked in SDN and found out a SAP NOTE - 956443, according to which 2 sda files 'webservices' and 'webservices_lib'  were to be deployed on the server.
    We have done the same and restarted the engine also. But still on deployment we got the same error again.
    Just wanted to know the workaround for this issue and whether some updated version of this SAP Note does exist?
    Regards,
    Shailesh

    Hi All,
    Now the above issue has been resolved and the webservice is getting deployed successfully, and is visible under Web service Navaigator of the desired server.
    But when i am clicking on the webservice name i am getting an error:
    Cannot download WSDL from http://<name>:<port>/webservicename/Config1?wsdl: java.lang.NullPointerException.
    Could you please help out with this issue.
    Regards,
    Shailesh

  • Oracle BI 11.1.1.7.1: Calling BI webservices from Plsql Procedure: ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError

    Hi,
         I have a requirement of calling BI webservices from Plsql stored procedure. I generated all my wsdl java classes and loaded them into the database. However, when I tried to call one of my java class using stored procedure, it is giving me"ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError".
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.
    But all my dependency classes are present in database as java class objects and are valid. Can some one help me out of this?

    Stiphane,
    You can look in USER_ERRORS to see if there's anything more specific reported by the compiler. But, it could also be the case that everything's OK (oddly enough). I loaded the JavaMail API in an 8.1.6 database and also got bytecode verifier errors, but it ran fine. Here are the errors I got when loading Sun's activation.jar, which ended up not being a problem:
    ORA-29552: verification warning: at offset 12 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):12 by a throw at offset 18 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):18 by a throw at offset 30 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):30 by a throw
    Hope this helps,
    -Dan
    http://www.compuware.com/products/devpartner/db/oracle_debug.htm
    Debug PL/SQL and Java in the Oracle Database

  • Anybody has experience calling ID API web service in Java

    Hello,
    as you know we can programmatically update ID objects by call ID APIs (web service). To do that you need to import the wsdl into a java project, generate web service client and call the client to update ID objects.
    I've tried this in NWDS CE version. However I got error when generating web service client from the wsdl of the ID web service. Only the BusinessComponentService passed the ws client genertion, the rest web services do not work.
    The error I got:
    IWAB0399E Error in generating Java from WSDL:  java.lang.NullPointerException
        java.lang.NullPointerException
        at org.apache.axis.wsdl.toJava.JavaInterfaceWriter.writeOperation(JavaInterfaceWriter.java:126)
    Anybody has experience with ID API?
    Thanks
    Jayson

    HI Jayson,
    you can also request the web service directly.
    For example, you could create a local xml file with the values you want to pass to the web service and configure a file 2 soap scenario within XI itself.
    You can create interfaces for each available web service.
    You could call this scenario "ID objects generator" or something and save the .tpz for the repository objects of this scenario, since you could reuse it in other projects.
    Other than that, in Teched '08, Bill Li showed a lot of proxies developed over Java to consume the ID API web services, and they all seemed to work ok. However I do think he used NW Developers Studio 7.0 (2004s), not CE.
    I'd raise an OSS msg with SAP in order to check the problem you're getting.
    Regards,
    Henrique.

  • Workshop 9.2 - Web Service Test Client - java.util.NoSuchElementException

    I've found an issue with the Web Services Test Client while developing a web service application in the Weblogic Workshop 9.2 tool. The same schema / code in Workshop 8.1 SP4 works okay in its version of the test client.
    The error seems to manifest itself, when I add the "addresses" element to the "locations" element.
    The error displayed in the weblogic service console is
    <BLOCKQUOTE>
    java.lang.RuntimeException: java.util.NoSuchElementException
    at weblogic.testclient.ConnectionState.createWsdl(ConnectionState.java:63)
    at Controller.refreshWsdl(Controller.java:304)
    at Controller.begin(Controller.java:173)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
            at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:878)
            at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:808)
            at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:477)
            at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:305)
            at org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:335)
            at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:51)
            at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
            at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:95)
            at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2042)
            at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:90)
            at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2114)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
            at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:554)
            at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:851)
            at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:630)
            at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:157)
            at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3211)
    Caused by: java.util.NoSuchElementException
            at java.util.AbstractList$Itr.next(AbstractList.java:427)
            at weblogic.testclient.RequestTemplate.addSoapForParameter(RequestTemplate.java:341)
            at weblogic.testclient.RequestTemplate.addSoapForParameter(RequestTemplate.java:334)
            at weblogic.testclient.RequestTemplate.addSoapForParameter(RequestTemplate.java:334)
            at weblogic.testclient.RequestTemplate.addSoapForParameter(RequestTemplate.java:334)
            at weblogic.testclient.RequestTemplate.addSoapForParameter(RequestTemplate.java:334)
            at weblogic.testclient.RequestTemplate.addSoapForParameter(RequestTemplate.java:334)
            at weblogic.testclient.RequestTemplate.addSoapForParameter(RequestTemplate.java:334)
            at weblogic.testclient.RequestTemplate.addSoapForParameter(RequestTemplate.java:334)
            at weblogic.testclient.RequestTemplate.addSoapForParameter(RequestTemplate.java:334)
            at weblogic.testclient.RequestTemplate.createMessageBody(RequestTemplate.java:220)
            at weblogic.testclient.RequestTemplate.buildRequest(RequestTemplate.java:169)
            at weblogic.testclient.RequestTemplate.createRequestTemplate(RequestTemplate.java:103)
            at weblogic.testclient.RequestTemplate.<init>(RequestTemplate.java:85)
            at weblogic.testclient.WebServiceOperation.<init>(WebServiceOperation.java:120)
            at weblogic.testclient.WsdlOperationParser.createOperation(WsdlOperationParser.java:115)
            at weblogic.testclient.WebService.createOperation(WebService.java:242)
            at weblogic.testclient.WebService.<init>(WebService.java:86)
            at weblogic.testclient.Wsdl.parseWsdl(Wsdl.java:127)
            at weblogic.testclient.Wsdl.<init>(Wsdl.java:59)
            at weblogic.testclient.ConnectionState.createWsdlFromHttpUrl(ConnectionState.java:113)
            at weblogic.testclient.ConnectionState.createWsdl(ConnectionState.java:54)
            at Controller.refreshWsdl(Controller.java:304)
            at Controller.begin(Controller.java:173)
            at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
            at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:878)
            at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:808)
            at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:477)
    </BLOCKQUOTE>
    The code in the Web Service control is...
    <BLOCKQUOTE>
    package services;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    import weblogic.jws.WLHttpTransport;
    import au.com.suncorp.services.payment.schema.x0.RequestIdDocument;
    import au.com.suncorp.services.payment.schema.x0.VendorDocument;
    @WebService(targetNamespace="http://suncorp.com.au/services/payment/wsdl/0")
    @WLHttpTransport(serviceUri="services/PaymentService")
    public class Payment {
         @WebMethod
         public RequestIdDocument setupVendor(VendorDocument request) {
              System.out.println(request.xmlText());
              RequestIdDocument result = RequestIdDocument.Factory.newInstance();
              RequestIdDocument.RequestId response = result.addNewRequestId();
              response.setCorrelationId("CorrelationId-" + request.getVendor().getName());
              return result;
    </BLOCKQUOTE>
    The XSD schema is as follows....
    <BLOCKQUOTE>
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://suncorp.com.au/services/payment/schema/0"
    xmlns:tns="http://suncorp.com.au/services/payment/schema/0">
    <!-- ***************************************************************** -->
    <simpleType name="correlationIdType">
    <annotation>
    <documentation>
    The CorrelationId field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="estTimeIntervalType">
    <annotation>
    <documentation>
    The Estimated Time Interval field.
    </documentation>
    </annotation>
    <restriction base="integer"></restriction>
    </simpleType>
    <simpleType name="vendorIdType">
    <annotation>
    <documentation>
    The Vendor Id field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="nameType">
    <annotation>
    <documentation>
    The Vendor Name field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="persistenceType">
    <annotation>
    <documentation>
    The Persistence field.
    </documentation>
    </annotation>
    <restriction base="boolean"></restriction>
    </simpleType>
    <simpleType name="ownerType">
    <annotation>
    <documentation>
    The Owner field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="sourceReferenceType">
    <annotation>
    <documentation>
    The vendor Source Reference field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="abnType">
    <annotation>
    <documentation>
    The vendor ABN field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="countryType">
    <annotation>
    <documentation>
    The Country field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="stateType">
    <annotation>
    <documentation>
    The State field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="cityType">
    <annotation>
    <documentation>
    The City field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="postcodeType">
    <annotation>
    <documentation>
    The Postcode field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="gstRegisteredType">
    <annotation>
    <documentation>
    The GST Registered field.
    </documentation>
    </annotation>
    <restriction base="boolean"></restriction>
    </simpleType>
    <simpleType name="withHoldingType">
    <annotation>
    <documentation>
    The WithHolding field.
    </documentation>
    </annotation>
    <restriction base="boolean"></restriction>
    </simpleType>
    <simpleType name="vendorClassType">
    <annotation>
    <documentation>
    The Vendor Class field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="statusType">
    <annotation>
    <documentation>The Status field.</documentation>
    </annotation>
    <restriction base="string">
    <enumeration value="ACTIVE">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    <enumeration value="INACTIVE">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    </restriction>
    </simpleType>
    <simpleType name="locationIdType">
    <annotation>
    <documentation>
    The Location Id field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="effectiveDateType">
    <annotation>
    <documentation>
    The Effective Date field.
    </documentation>
    </annotation>
    <restriction base="dateTime"></restriction>
    </simpleType>
    <simpleType name="addressIdType">
    <annotation>
    <documentation>
    The AddressId field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="addressType">
    <annotation>
    <documentation>
    The Address field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="contactIdType">
    <annotation>
    <documentation>
    The ContactId field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="contactMethodType">
    <annotation>
    <documentation>
    The Address field.
    </documentation>
    </annotation>
    <restriction base="string">
    <enumeration value="FAX">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    <enumeration value="PHONE">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    <enumeration value="EMAIL">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    </restriction>
    </simpleType>
    <simpleType name="dispatchMethodType">
    <annotation>
    <documentation>
    The Dispatch Method field.
    </documentation>
    </annotation>
    <restriction base="string">
    <enumeration value="EFT">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    <enumeration value="FAX">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    <enumeration value="EMAIL">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    </restriction>
    </simpleType>
    <simpleType name="currencyType">
    <annotation>
    <documentation>
    The Currency field.
    </documentation>
    </annotation>
    <restriction base="boolean"></restriction>
    </simpleType>
    <simpleType name="payGroupType">
    <annotation>
    <documentation>
    The Pay Group field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="payHoldType">
    <annotation>
    <documentation>
    The Pay Hold field.
    </documentation>
    </annotation>
    <restriction base="boolean"></restriction>
    </simpleType>
    <simpleType name="freightTermsType">
    <annotation>
    <documentation>
    The Freight Terms field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="payHandlingType">
    <annotation>
    <documentation>
    The Pay Handling field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="delayDaysType">
    <annotation>
    <documentation>
    The Delay Days field.
    </documentation>
    </annotation>
    <restriction base="integer"></restriction>
    </simpleType>
    <simpleType name="payFromBankType">
    <annotation>
    <documentation>
    The Pay From Bank field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="paymentInstructionsType">
    <annotation>
    <documentation>
    The Payment Instructions field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="paymentTermsType">
    <annotation>
    <documentation>
    The Payment Terms field.
    </documentation>
    </annotation>
    <restriction base="string">
    <enumeration value="COD">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    <enumeration value="SEVEN_DAYS">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    <enumeration value="FOURTEEN_DAYS">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    <enumeration value="TWENTYONE_DAYS">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    <enumeration value="THIRTY_DAYS">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    </restriction>
    </simpleType>
    <simpleType name="paymentMethodType">
    <annotation>
    <documentation>
    The Payment Method field.
    </documentation>
    </annotation>
    <restriction base="string">
    <enumeration value="EFT">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    <enumeration value="CHEQUE">
    <annotation>
    <documentation>an enumerated value.</documentation>
    </annotation>
    </enumeration>
    </restriction>
    </simpleType>
    <simpleType name="payBankIdType">
    <annotation>
    <documentation>
    The PayBankId field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="descriptionType">
    <annotation>
    <documentation>
    The Pay Bank Description field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="bankIdType">
    <annotation>
    <documentation>
    The BankId field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="branchIdType">
    <annotation>
    <documentation>
    The BranchId field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <simpleType name="bankAccountType">
    <annotation>
    <documentation>
    The BankAccount field.
    </documentation>
    </annotation>
    <restriction base="string"></restriction>
    </simpleType>
    <!-- ***************************************************************** -->
    <complexType name="payBankDetailsType">
    <sequence>
    <element name="payBankId" type="tns:payBankIdType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="description" type="tns:descriptionType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="bankId" type="tns:bankIdType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="branchId" type="tns:branchIdType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="bankAccount" type="tns:bankAccountType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="effectiveDate" type="tns:effectiveDateType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    </sequence>
    </complexType>
    <complexType name="paymentDetailsType">
    <sequence>
    <element name="paymentTerms" type="tns:paymentTermsType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="paymentMethod" type="tns:paymentMethodType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="dispatchMethod" type="tns:dispatchMethodType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="payGroup" type="tns:payGroupType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="currency" type="tns:currencyType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="payHold" type="tns:payHoldType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="freightTerms" type="tns:freightTermsType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="payHandling" type="tns:payHandlingType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="delayDays" type="tns:delayDaysType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="payFromBank" type="tns:payFromBankType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="paymentInstructions" type="tns:paymentInstructionsType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="bankDetails" type="tns:payBankDetailsType" maxOccurs="1" minOccurs="1"></element>
    </sequence>
    </complexType>
    <complexType name="contactDetailsType">
    <sequence>
    <element name="contactId" type="tns:contactIdType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="effectiveDate" type="tns:effectiveDateType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="name" type="tns:nameType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="contactMethod" type="tns:contactMethodType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="dispatchMethod" type="tns:dispatchMethodType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="status" type="tns:statusType" maxOccurs="1" minOccurs="1"></element>
    </sequence>
    </complexType>
    <complexType name="arrayOfContactDetails">
    <sequence>
    <element name="contact" type="tns:contactDetailsType" maxOccurs="unbounded" minOccurs="0"></element>
    </sequence>
    </complexType>
    <complexType name="addressDetailsType">
    <sequence>
    <element name="addressId" type="tns:addressIdType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="effectiveDate" type="tns:effectiveDateType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="name" type="tns:nameType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="address" type="tns:addressType" maxOccurs="1" minOccurs="1"></element>
    <element name="postcode" type="tns:postcodeType" maxOccurs="1" minOccurs="1"></element>
    <element name="city" type="tns:cityType" maxOccurs="1" minOccurs="1"></element>
    <element name="state" type="tns:stateType" maxOccurs="1" minOccurs="1"></element>
    <element name="country" type="tns:countryType" maxOccurs="1" minOccurs="1"></element>
    <element name="contacts" type="tns:arrayOfContactDetails" maxOccurs="1" minOccurs="0"></element>
    </sequence>
    </complexType>
    <complexType name="arrayOfAddressDetails">
    <sequence>
    <element name="address" type="tns:addressDetailsType" maxOccurs="unbounded" minOccurs="0"></element>
    </sequence>
    </complexType>
    <complexType name="locationDetailsType">
    <sequence>
    <element name="locationId" type="tns:locationIdType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="effectiveDate" type="tns:effectiveDateType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="orderingVendorId" type="tns:vendorIdType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="invoicingVendorId" type="tns:vendorIdType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="remittingVendorId" type="tns:vendorIdType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="returningVendorId" type="tns:vendorIdType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="status" type="tns:statusType" maxOccurs="1" minOccurs="1"></element>
    <element name="paymentDetails" type="tns:paymentDetailsType" maxOccurs="1" minOccurs="1"></element>
    <element name="addresses" type="tns:arrayOfAddressDetails" maxOccurs="1" minOccurs="0"></element>
    </sequence>
    </complexType>
    <complexType name="arrayOfLocationDetails">
    <sequence>
    <element name="location" type="tns:locationDetailsType" maxOccurs="unbounded" minOccurs="0"></element>
    </sequence>
    </complexType>
    <!-- ***************************************************************** -->
    <element name="Vendor">
    <complexType mixed="true">
    <annotation>
    <documentation>
    The Vendor request object.
    </documentation>
    </annotation>
    <sequence>
    <element name="vendorId" type="tns:vendorIdType" maxOccurs="1" minOccurs="1"></element>
    <element name="name" type="tns:nameType" maxOccurs="1" minOccurs="1"></element>
    <element name="persistence" type="tns:persistenceType" maxOccurs="1" minOccurs="1" default="true"></element>
    <element name="owner" type="tns:ownerType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="sourceReference" type="tns:sourceReferenceType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="corporateVendorId" type="tns:vendorIdType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="abn" type="tns:abnType" maxOccurs="1" minOccurs="0" nillable="true"></element>
    <element name="country" type="tns:countryType" maxOccurs="1" minOccurs="1" default="AUS"></element>
    <element name="gstRegistered" type="tns:gstRegisteredType" maxOccurs="1" minOccurs="0" nillable="true" default="true"></element>
    <element name="withHolding" type="tns:withHoldingType" maxOccurs="1" minOccurs="0" nillable="true" default="false"></element>
    <element name="status" type="tns:statusType" maxOccurs="1" minOccurs="1" default="ACTIVE"></element>
    <element name="vendorClass" type="tns:vendorClassType" maxOccurs="1" minOccurs="1"></element>
    <element name="locations" type="tns:arrayOfLocationDetails" maxOccurs="1" minOccurs="0"></element>
    </sequence>
    </complexType>
    </element>
    <element name="RequestId">
    <complexType mixed="true">
    <annotation>
    <documentation>The typical response object for requests.
    </documentation>
    </annotation>
    <sequence>
    <element name="correlationId" type="tns:correlationIdType" maxOccurs="1" minOccurs="1"></element>
    <element name="estTimeInterval" type="tns:estTimeIntervalType" maxOccurs="1" minOccurs="0" nillable="true" default="24"></element>
    </sequence>
    </complexType>
    </element>
    </schema>
    </BLOCKQUOTE>

    Hi Paul
    I believe there is some issue with the TestClient.
    Instead to test, can you please try this?
    1) Right click on Payment.java and choose Webservices -> generate wsdl
    2) Right click on the wsdl and choose Webservices -> Test with WebServices Explorer.
    3) Click on setVendor method
    4) Enter the request parameters
    Sample one:
    <ns:Vendor xmlns="http://www.openuri.org/" xmlns:ns="http://suncorp.com.au/services/payment/schema/0">
    <vendorId xmlns="">Vendor Id</vendorId>
    <name xmlns="">My correlation Id</name>
    <persistence xmlns="">false</persistence>
    <country xmlns="">USA</country>
    <status xmlns="">ACTIVE</status>
    <vendorClass xmlns="">VendorClass</vendorClass>
    </ns:Vendor>
    5) Hit the button 'Go'. The entire soap response will be displayed in the bottom.
    I have tested this and it works fine.
    Output I got:
    <m:setupVendorResponse xmlns:m="http://suncorp.com.au/services/payment/wsdl/0">
    <RequestId xmlns="http://suncorp.com.au/services/payment/schema/0">
    <correlationId>CorrelationId-My correlation Id</correlationId>
    </RequestId>
    </m:setupVendorResponse>
    Thanks,
    Vimala

  • Error in Business Rule Decision Service's wsdl

    Hi,
    Getting strange error which i am unable to sort out.
    Pleaseeee help.
    Error message is
    "Error Message: {http://xmlns.oracle.com/OrderPORules/OrderPORules_DecisionService_1}operationErroredFault
    Fault ID default/OrderBooking!1.0*soa_e118292f-eb55-4f13-a6ec-f1c006c63302/LargeOrders/100903-BpInv1-BpSeq1.6-3
    Fault Time Aug 23, 2011 12:19:08 PM
    Non Recoverable System Fault :
    <bpelFault><faultType>0</faultType><operationErroredFault xmlns="http://xmlns.oracle.com/OrderPORules/OrderPORules_DecisionService_1"><part name="payload"><errorInfo xmlns="http://xmlns.oracle.com/OrderPORules/OrderPORules_DecisionService_1"><errorMessage>Index: 0, Size: 0</errorMessage></errorInfo></part></operationErroredFault></bpelFault>
    My WSDL is- OrderPORules_DecisionService_1.wsdl
    <?xml version= '1.0' encoding= 'UTF-8' ?>
    <wsdl:definitions
    name="OrderPORules_DecisionService_1"
    targetNamespace="http://xmlns.oracle.com/OrderPORules/OrderPORules_DecisionService_1"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:tns="http://xmlns.oracle.com/OrderPORules/OrderPORules_DecisionService_1"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:java="http://schemas.xmlsoap.org/wsdl/java/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:format="http://schemas.xmlsoap.org/wsdl/formatbinding/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:rules="http://xmlns.oracle.com/bpel/rules"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    >
    <plnk:partnerLinkType name="IDecisionService_PL">
    <plnk:role name="IDecisionService_Role">
    <plnk:portType name="tns:IDecisionService"/>
    </plnk:role>
    </plnk:partnerLinkType>
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xmlns.oracle.com/OrderPORules/OrderPORules_DecisionService_1"
    attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:tns="http://xmlns.oracle.com/OrderPORules/OrderPORules_DecisionService_1"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpelpm="http://xmlns.oracle.com/bpel"
    xmlns:rules="http://xmlns.oracle.com/bpel/rules">
    <include schemaLocation="xsd/OrderPORules_DecisionService_1Types.xsd"/>
    </schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xmlns.oracle.com/bpel/rules"
    attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:tns="http://xmlns.oracle.com/bpel/rules"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpelpm="http://xmlns.oracle.com/bpel"
    xmlns:rules="http://xmlns.oracle.com/bpel/rules">
    <element name="int" type="xsd:int"/>
    <element name="double" type="xsd:double"/>
    <element name="string" type="xsd:string"/>
    <element name="boolean" type="xsd:boolean"/>
    <element name="byte" type="xsd:byte"/>
    <element name="short" type="xsd:short"/>
    <element name="long" type="xsd:long"/>
    <element name="float" type="xsd:float"/>
    <element name="integer" type="xsd:integer"/>
    <element name="decimal" type="xsd:decimal"/>
    <element name="dateTime" type="xsd:dateTime"/>
    <element name="duration" type="xsd:duration"/>
    </schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xmlns.oracle.com/OrderPORules/OrderPORules_DecisionService_1"
    attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:tns="http://xmlns.oracle.com/OrderPORules/OrderPORules_DecisionService_1"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpelpm="http://xmlns.oracle.com/bpel"
    xmlns:rules="http://xmlns.oracle.com/bpel/rules" xmlns:ns1="http://xmlns.oracle.com/ns/OrderBooking/rules">
    <import namespace="http://xmlns.oracle.com/ns/OrderBooking/rules" schemaLocation="xsd/OrderBookingDiscount.xsd"/>
    <import namespace="http://xmlns.oracle.com/bpel/rules"/>
    <import namespace="http://xmlns.oracle.com/bpel"/>
    <element name="callFunctionStateless">
    <complexType>
    <sequence>
    <element name="configURL" type="string" minOccurs="0" maxOccurs="1"/>
    <element name="bpelInstance" type="bpelpm:tBpelProcess" minOccurs="0" maxOccurs="1"/>
    <element name="parameterList" minOccurs="1" maxOccurs="1">
    <complexType>
    <sequence>
    <element ref="ns1:price"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    <attribute name="name" type="NCName" use="required"/>
    </complexType>
    </element>
    <element name="callFunctionStatelessDecision">
    <complexType>
    <sequence>
    <element name="resultList" minOccurs="1" maxOccurs="1">
    <complexType>
    <sequence>
    <element ref="ns1:discountandshipping"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    <element name="callFunctionStateful">
    <complexType>
    <sequence>
    <element name="configURL" type="string" minOccurs="0" maxOccurs="1"/>
    <element name="bpelInstance" type="bpelpm:tBpelProcess" minOccurs="0" maxOccurs="1"/>
    <element name="parameterList" minOccurs="1" maxOccurs="1">
    <complexType>
    <sequence>
    <element ref="ns1:price"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    <attribute name="name" type="NCName" use="required"/>
    </complexType>
    </element>
    <element name="callFunctionStatefulDecision">
    <complexType>
    <sequence>
    <element name="resultList" minOccurs="1" maxOccurs="1">
    <complexType>
    <sequence>
    <element ref="ns1:discountandshipping"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </schema>
    </wsdl:types>
    <wsdl:message name="callFunctionStatelessMessage">
    <wsdl:part name="payload" element="tns:callFunctionStateless"/>
    </wsdl:message>
    <wsdl:message name="callFunctionStatelessDecisionMessage">
    <wsdl:part name="payload" element="tns:callFunctionStatelessDecision"/>
    </wsdl:message>
    <wsdl:message name="decisionServiceError">
    <wsdl:part name="payload" element="tns:errorInfo"/>
    </wsdl:message>
    <wsdl:message name="callFunctionStatefulMessage">
    <wsdl:part name="payload" element="tns:callFunctionStateful"/>
    </wsdl:message>
    <wsdl:message name="callFunctionStatefulDecisionMessage">
    <wsdl:part name="payload" element="tns:callFunctionStatefulDecision"/>
    </wsdl:message>
    <wsdl:portType name="IDecisionService">
    <wsdl:operation name="callFunctionStateless">
    <wsdl:input name="callFunctionStatelessInput" message="tns:callFunctionStatelessMessage"/>
    <wsdl:output name="callFunctionStatelessOutput" message="tns:callFunctionStatelessDecisionMessage"/>
    <wsdl:fault name="operationErroredFault" message="tns:decisionServiceError"/>
    </wsdl:operation>
    <wsdl:operation name="callFunctionStateful">
    <wsdl:input name="callFunctionStatefulInput" message="tns:callFunctionStatefulMessage"/>
    <wsdl:output name="callFunctionStatefulOutput" message="tns:callFunctionStatefulDecisionMessage"/>
    <wsdl:fault name="operationErroredFault" message="tns:decisionServiceError"/>
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>
    Thanks
    Shikha
    Edited by: 886238 on Oct 12, 2011 3:36 AM

    Hi
    I think the issue is with namespace mismatch.
    can please check the namespace of input variable matches with the namespace what rule component is expecting.
    Regards
    Albin I

  • Java web service and pocket pc

    Hi all. I am looking for some advice on how best to go about the following. I have looked on the internet and found info on relevent parts, but not sure how to interact them all together.
    I want to develop an application for a pocket pc (probably windows mobile 5.0) that will interact with a web service(in java). The pocket pc will send some sort of authentication to the service, which will then query a database and send the relevent information back to pocket pc.
    I have read things on SOAP, WSDL and AJAX etc... but am unsure how to put them all together.
    If anyone has any advice, good tutorials or links then they are greatly appreciated.
    Regards

    Hi all. I am looking for some advice on how best to
    go about the following. I have looked on the
    internet and found info on relevent parts, but not
    sure how to interact them all together.Join the crowd :-) For most of this stuff, it seems we're ALL finding our way around.
    I have read things on SOAP, WSDL and AJAX etc... but
    am unsure how to put them all together.That's kind of like asking "how long is a piece of rope?" It depends on what you need it for.
    Try w3schools.org for some great tutorials on some of the underlying technologies that power the above.
    SOAP is nice and all if you want to use third-party libraries and you need industry-standard interactivity (for example with vendors or customers), but if you're doing everything in-house (i.e. your own application will consume the web service you wrote) then I'd seriously consider REST-based webservices. They're easier to write because you're free from the limitations of SOAP, and your apps can be smaller and with fewer parts.
    Screw WSDL. Use it only if you are forced to. Axis has a great WSDL generator and if you can deploy everything in Axis, then you're good to go. I started writing my webservices using Axis and WSDL->Java generators and I was all cool and stuff because I was doing what everyone said was the best way to write these new applications. It took me a while to realize that most of that advice was coming from the people that were writing the software the real applications were based on, not using the stuff they had written to build real apps with. The perspective is completely different.
    Then I had to maintain that mess and it wasn't worth it because all of my uses for webservices are internal. I write the server and client portions both. There's no need to complicate the issue with technologies that are meant for interacting with other systems which you have no control over, nor any knowledge of how they're consuming the information you're providing.
    As to specific documentation, that's a little harder to come by. Your best bet is to first and foremost: read the specs on w3.org. No other pieces of documentation will be as in-depth and informative as the spec. If you're using spec-compliant implementations, then you've already got all your documentation. They're dense, I agree. They take forever, I agree. But I have yet to find anything that can rival the depth of understanding I gain from the specifications. Read the specs. All of them. Download them, print them out, stuff them in a fat folder (mine's in a 3-inch binder) and keep them handy. It seems like enterprise-level webservice-enabled apps will require lots of third-party support libraries, use lots of different technologies, and the documentation required to help the developer actually use all of this stuff will become critical. That's why I say print stuff out and keep it in one spot.
    If you can get any good out of these third-party libraries for generating clients, then more power to ya. I think they're a waste of time, myself, because I can write a client quicker and make it far more easy to maintain if I just do it from scratch. I'm only interested in using these technologies to make it quicker, more effiicient, easier to maintain, etc... be careful you don't get carried away with the vastly divergent advice you'll get on how to build your app and end up making it much more complicated and harder to maintain than it would have been had you not used industry-standard methodologies. Think small and simple.
    To get started, I would get a really good XML IDE. I use oxygen (http://www.oxygenxml.com). Version 7 is out, which has XQuery debugging and lots of other stuff. Have your company buy it. It's worth it. (has eclipse integration too). Then download Sarissa: http://sourceforge.net/projects/sarissa it's a great cross-browser javascript library for doing AJAX stuff. We use it for our AJAX applications and it's great. Fairly well documented too. Then use as much client-side processing as you can get away with because with webservices, your XML processing will hammer the server. Our IBM dual 3GHz/8GB RAM machine is chugging constantly. We process around 300,000 pages of XML in a normal business day, and it's intensive processing (lots of SQL serialization and transforms). We're trying to offload as much work to the client as we can. We're using Mozilla now, so that's making life much easier for us. Even the embedded mozillas have fantastic support for AJAX-friendly technologies.
    As for putting everything together, well, you're pretty much on your own there. In our environment, we have a custom XML-based intranet portal, which I had to write myself because there's nothing out there that does what we need it to, we use Postgres as our enterprise database, JBoss as our application server, Apache as our front-end, and oh yeah, we have an AS-400 on which resides all the "real" data. Just try and find documentation on serving data via an AJAX-enabled enterprise app from data that resides on DB2/400 and generating the interface on the client using XSLT. Or how about getting data from the postgres server into an RPG program using a webservices client on the 400. I don't even think I'm supposed to be doing stuff like that, let alone be able to find documentation on a solution that someone has come up with.
    Now if someone would just make a good JavaScript IDE, AJAX would take off like a bat out of hell. How long has JavaScript been around now? 10 years-ish? And how many good IDE's are there for JavaScript? Zero. Really irritates me sometimes... A good Mozilla-based AJAX-friendly JavaScript IDE would be a HUGE and I mean HUGE benefit to the webservices community.

  • Simple SOA application, but error in load of wsdl wont compile

    Hi all,
    I've come to the end of the line with this one, so I hope someone can help. I have a very simple business rules application - one function, one rule, one decision service - and the deployment descriptor (wsdl) copied at the bottom. When I try to compile the application I get:
    Error: Load of wsdl "TrainDeliveryServiceCancelledNotificationRules_TrainDeliveryServiceCancelledNotificationRule_DecisionService_1.wsdl with Message part element undefined in wsdl [file:/C:/_dev/NROL3/Soa/Nrol3BusinessRulesPoc/TrainDeliveryServiceCancelledNotificationRules_TrainDeliveryServiceCancelledNotificationRule_DecisionService_1.wsdl] part name = payload     type = {http://xmlns.oracle.com/TrainDeliveryServiceCancelledNotificationRules/TrainDeliveryServiceCancelledNotificationRules_TrainDeliveryServiceCancelledNotificationRule_DecisionService_1}callFunctionStateful" failed
    I am sure its me being thick, but I can't see what I'm doing wrong. I have a feeling my schema def headers for my data are wrong:
    <xs:schema
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.customersharepoint.co.uk:8090/trac/TS1331_NROL3/wiki/xsd"
    targetNamespace="http://www.customersharepoint.co.uk:8090/trac/TS1331_NROL3/wiki/xsd" elementFormDefault="qualified">
    My wsdl is as follows. Jdev is giving me a warning on my custom application imports, but I dont think thats the problem.
    Please help!
    <wsdl:definitions
    name="TrainDeliveryServiceCancelledNotificationRules_TrainDeliveryServiceCancelledNotificationRule_DecisionService_1"
    targetNamespace="http://xmlns.oracle.com/TrainDeliveryServiceCancelledNotificationRules/TrainDeliveryServiceCancelledNotificationRules_TrainDeliveryServiceCancelledNotificationRule_DecisionService_1"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://xmlns.oracle.com/TrainDeliveryServiceCancelledNotificationRules/TrainDeliveryServiceCancelledNotificationRules_TrainDeliveryServiceCancelledNotificationRule_DecisionService_1"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:java="http://schemas.xmlsoap.org/wsdl/java/"
    xmlns:format="http://schemas.xmlsoap.org/wsdl/formatbinding/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:rules="http://xmlns.oracle.com/bpel/rules"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    >
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xmlns.oracle.com/TrainDeliveryServiceCancelledNotificationRules/TrainDeliveryServiceCancelledNotificationRules_TrainDeliveryServiceCancelledNotificationRule_DecisionService_1"
    attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:tns="http://xmlns.oracle.com/TrainDeliveryServiceCancelledNotificationRules/TrainDeliveryServiceCancelledNotificationRules_TrainDeliveryServiceCancelledNotificationRule_DecisionService_1"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpelpm="http://xmlns.oracle.com/bpel"
    xmlns:rules="http://xmlns.oracle.com/bpel/rules">
    <include schemaLocation="xsd/TrainDeliveryServiceCancelledNotificationRules_TrainDeliveryServiceCancelledNotificationRule_DecisionService_1Types.xsd"/>
    </schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xmlns.oracle.com/bpel/rules"
    attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:tns="http://xmlns.oracle.com/bpel/rules"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpelpm="http://xmlns.oracle.com/bpel"
    xmlns:rules="http://xmlns.oracle.com/bpel/rules">
    <element name="int" type="xsd:int"/>
    <element name="double" type="xsd:double"/>
    <element name="string" type="xsd:string"/>
    <element name="boolean" type="xsd:boolean"/>
    <element name="byte" type="xsd:byte"/>
    <element name="short" type="xsd:short"/>
    <element name="long" type="xsd:long"/>
    <element name="float" type="xsd:float"/>
    <element name="integer" type="xsd:integer"/>
    <element name="decimal" type="xsd:decimal"/>
    <element name="dateTime" type="xsd:dateTime"/>
    <element name="duration" type="xsd:duration"/>
    </schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xmlns.oracle.com/TrainDeliveryServiceCancelledNotificationRules/TrainDeliveryServiceCancelledNotificationRules_TrainDeliveryServiceCancelledNotificationRule_DecisionService_1"
    attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:tns="http://xmlns.oracle.com/TrainDeliveryServiceCancelledNotificationRules/TrainDeliveryServiceCancelledNotificationRules_TrainDeliveryServiceCancelledNotificationRule_DecisionService_1"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpelpm="http://xmlns.oracle.com/bpel"
    xmlns:rules="http://xmlns.oracle.com/bpel/rules">
    <import namespace="" schemaLocation="xsd/NotificationSpecificationMock.xsd"/>
    <import namespace="" schemaLocation="xsd/Organisation.xsd"/>
    <import namespace="" schemaLocation="xsd/TrainDeliveryService.xsd"/>
    <import namespace="http://xmlns.oracle.com/bpel/rules"/>
    <import namespace="http://xmlns.oracle.com/bpel"/>
    <element name="callFunctionStateless">
    <complexType>
    <sequence>
    <element name="configURL" type="string" minOccurs="0" maxOccurs="1"/>
    <element name="bpelInstance" type="bpelpm:tBpelProcess" minOccurs="0" maxOccurs="1"/>
    <element name="parameterList" minOccurs="1" maxOccurs="1">
    <complexType>
    <sequence>
    <element ref="TrainDeliveryService"/>
    <element ref="Nrol3User"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    <attribute name="name" type="NCName" use="required"/>
    </complexType>
    </element>
    <element name="callFunctionStatelessDecision">
    <complexType>
    <sequence>
    <element name="resultList" minOccurs="1" maxOccurs="1">
    <complexType>
    <sequence>
    <element ref="NotificationSpecification"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    <element name="callFunctionStateful">
    <complexType>
    <sequence>
    <element name="configURL" type="string" minOccurs="0" maxOccurs="1"/>
    <element name="bpelInstance" type="bpelpm:tBpelProcess" minOccurs="0" maxOccurs="1"/>
    <element name="parameterList" minOccurs="1" maxOccurs="1">
    <complexType>
    <sequence>
    <element ref="TrainDeliveryService"/>
    <element ref="Nrol3User"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    <attribute name="name" type="NCName" use="required"/>
    </complexType>
    </element>
    <element name="callFunctionStatefulDecision">
    <complexType>
    <sequence>
    <element name="resultList" minOccurs="1" maxOccurs="1">
    <complexType>
    <sequence>
    <element ref="NotificationSpecification"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </schema>
    </wsdl:types>
    <wsdl:message name="callFunctionStatelessMessage">
    <wsdl:part name="payload" element="tns:callFunctionStateless"/>
    </wsdl:message>
    <wsdl:message name="callFunctionStatelessDecisionMessage">
    <wsdl:part name="payload" element="tns:callFunctionStatelessDecision"/>
    </wsdl:message>
    <wsdl:message name="callFunctionStatefulMessage">
    <wsdl:part name="payload" element="tns:callFunctionStateful"/>
    </wsdl:message>
    <wsdl:message name="callFunctionStatefulDecisionMessage">
    <wsdl:part name="payload" element="tns:callFunctionStatefulDecision"/>
    </wsdl:message>
    <wsdl:message name="decisionServiceError">
    <wsdl:part name="payload" element="tns:errorInfo"/>
    </wsdl:message>
    <wsdl:portType name="IDecisionService">
    <wsdl:operation name="callFunctionStateless">
    <wsdl:input name="callFunctionStatelessInput" message="tns:callFunctionStatelessMessage"/>
    <wsdl:output name="callFunctionStatelessOutput" message="tns:callFunctionStatelessDecisionMessage"/>
    <wsdl:fault name="operationErroredFault" message="tns:decisionServiceError"/>
    </wsdl:operation>
    <wsdl:operation name="callFunctionStateful">
    <wsdl:input name="callFunctionStatefulInput" message="tns:callFunctionStatefulMessage"/>
    <wsdl:output name="callFunctionStatefulOutput" message="tns:callFunctionStatefulDecisionMessage"/>
    <wsdl:fault name="operationErroredFault" message="tns:decisionServiceError"/>
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>

    Well, after burning a half a day on this I've discovered that deleting and recreating the decision service makes the problem go away. This is not the first time that inexplicable problems in JDeveloper 11 have gone away after 'turning it off and on again'.
    Anyone have any ideas?
    Rory

  • Services under EBSConsole AIASystem ValidationSystem WSDL Parsing Failed

    Hi all,
    Below is my setup seteps:
    1. Install SOA10.1.3.3 cluster accroding to "Application Server Enterprise Deployment Guide" (e10294)
    2. Installing AIA Foundation Pack 2.1 on SOA Cluster according to Note 731120.1
    When starting both nodes, some error message appear in soa_group~oc4j_soa~soa_group~1.log under <ORACLE_HOME>/opmn/logs as :
    ================================================================
    09/03/18 11:16:14 Caused by: WSDL Parsing Failed: http://<LBR URL>/AIAValidationSystemServl
    et/syncresponsesimulator?wsdl: java.io.FileNotFoundException: http://<LBR URL>/AIAValidatio
    nSystemServlet/syncresponsesimulator?wsdl
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
    at java.net.URL.openStream(URL.java:1007)
    at oracle.tip.esb.utils.WSDLUtil.parseWSDL(WSDLUtil.java:125)
    at oracle.tip.esb.server.common.cache.WsdlCachePolicy.loadEntry(WsdlCachePolicy.java:48)
    at oracle.tip.esb.server.common.cache.Cache.setEntry(Cache.java:306)
    at oracle.tip.esb.server.common.cache.Cache.setEntry(Cache.java:270)
    at oracle.tip.esb.server.common.cache.Cache.getEntry(Cache.java:208)
    at oracle.tip.esb.server.common.cache.Cache.getEntry(Cache.java:181)
    at oracle.tip.esb.server.common.cache.RuntimeCache.getWsdlDefinition(RuntimeCache.java:249)
    at oracle.tip.esb.configuration.ServiceBusConstants.addService(ServiceBusConstants.java:674)
    at oracle.tip.esb.configuration.ServiceBusConstants.createTestPagesForSystem(ServiceBusConstants.java
    :626)
    at oracle.tip.esb.configuration.ServiceBusConstants.prepareTestPages(ServiceBusConstants.java:591)
    at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.init(EventOracleSoapProvider.java:
    162)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.initProvider(ProviderProcessor.java:162)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.init(ProviderProcessor.java:126)
    at oracle.j2ee.ws.server.provider.ProviderServlet.initializeProcessor(ProviderServlet.java:159)
    at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:128)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2371)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4824)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4748)
    at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4936)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1145)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:741)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
    at com.evermind.server.Application.getHttpApplication(Application.java:570)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReferen
    ce(HttpSite.java:1987)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1906)
    at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:643)
    at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290)
    at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270)
    at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177)
    at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2493)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1042)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
    at java.lang.Thread.run(Thread.java:595)
    09/03/18 11:16:14 at oracle.tip.esb.utils.WSDLUtil.parseWSDL(WSDLUtil.java:136)
    09/03/18 11:16:14 at oracle.tip.esb.server.common.cache.WsdlCachePolicy.loadEntry(WsdlCachePolicy.java:
    48)
    09/03/18 11:16:14 ... 32 more
    =================================================================
    AIA experts can give some hints about this issue?
    If you need more info please let me know.
    Thanks and Regards,
    Tim
    Edited by: AGUI on Mar 17, 2009 10:07 PM

    I have reached the exact same error as this post http://scn.sap.com/thread/3190403
    The error is
    [Mon Jun 18 23:14:28 2012] [error] ..\..\src\core\deployment\conf_builder.c(876) Specifyingservices and modules directories using axis2.xml but path of the library directory is not present
    [Mon Jun 18 23:14:28 2012] [error] ..\..\src\core\deployment\conf_builder.c(261) Processing transport senders failed, unable to continue
    [Mon Jun 18 23:14:28 2012] [error] ..\..\src\core\deployment\dep_engine.c(939) Populating Axis2 Configuration failed
    [Mon Jun 18 23:14:28 2012] [error] ..\..\src\core\deployment\conf_init.c(195) Loading deployment engine failed for client repository C:\Program Files (x86)\SAP BusinessObjects\Data Services\ext\webservice-c\axis2.xml
    As it is identified as an version problem, this issue is not going to be investigated any further.
    As an alternative, can try to use Oracle 11g SOAP_API.sql.

Maybe you are looking for