Create a web service in jdev from an EJBSessionBean

Hi,
can someone tell me how to create a web service from an EJBSessionBean.java in jdev?
I do like the EJBSessionBean was a simple java class but the web service doesn't work
thanks

hi again,
i m going to tell you what i ve done:
1- i created an entity bean from existing table(table users)
2- then i create the session bean (methods are just the CRUD ones)
3- after that i add a java service facade wich i use to generate a web service(all is good, generation is done and deployement of the web service is done without errors)
4- then i run my web service. for exemple if i invoke the queryusersfindall it should display the data on the table, but what i get is an error:
<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:ns0="http://oracle.model/"
xmlns:ns1="http://www.oracle.com/webservices/internal/literal">
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Internal Server Error (Caught exception while handling request: java.lang.IllegalArgumentException: NamedQuery of name: Users.findAll not found.)</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
----------------------------------------------------------------------

Similar Messages

  • Creating a web service to consume price of a particular stock from ???

    hey,
    i'm new, donno much about web services in terms of writing it, but i do have some knowledge about wat it actually does...
    im here becuz i wanna create a web service to consume the price of a particular stock and then store the closing price along with the dates into a database
    now, im abit lost here.. how do i know where to get the information from? is it possible for me to write a web service to communicate with Yahoo! Finance or any other sites which allows consumption of information?

    If you are talking about simple XML transformation of the SOAP payload between the client calling your service and the final destination of the message you are routing, the ESB approach may be a better fit.
    If you have more complex transformation in mind, with major processing and rework of the message in the intermediary, you may be better of with using the POJO approach. Write your service and embed a callout to the other service in your implementation. If the two services share the same Java Model, you may even be able to re-use the same Java Bean.
    To get SOAP Element instead of Java bean, you just need to use the noDataBinding option with either genProxy and topDownAssemble (or assemble). See the WS-Guide [1] for details. Chapter 18 will give you all the details about the different WSA command line parameters.
    Hope this helps,
    -Eric
    [1] http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28974/toc.htm

  • Parse errors while creating a Web service from Java class!

    Can anybody tell me please, is it possible to create a Web Service from java class where the input from user is required ?
    I have the following program, which is successfully compiled, but when I'm trying to make a web service in JDeveloper, the following error occurs:
    "Validation failed.
    The implementation class primePackage.isPrime ofport type MyWebService contains parse errors."
    import java.io.*;
    import java.util.*;
    class isPrime
    public static void main (String args[])
    Scanner reader = new Scanner(System.in);
    int n;
    System.out.println ("Enter a number you want to know is it prime or not");
    n=reader.nextInt();
    if (isPrime(n))
    System.out.println ("True");
    else
    System.out.println ("False");
    static boolean isPrime (int n)
    int i=2;
    while (i<=n-1)
    if (n%i==0)
    return false;
    i++;
    return true;
    }

    Hi,
    Can anybody tell me please, is it possible to create
    a Web Service from java class where the input from
    user is required ?Yes, the parameters of your method will be mapped in WSDL.
    But i've some considerations about your code.
    I suggest you change the name of isPrime do Prime, its a good code convention to put the name of class starting with Upper case. and isn't good the name of class equals to name of method.
    I suggest you to change the "static boolean isPrime (int n)" to "public boolean isPrime(int n)" to publish a method as a WebService method it's must be public and not static. After this change try to generate your Web Service.
    Regards.

  • Any difference in creating a web service from a java class or session bean?

    Hi,
    The JDeveloper tutorial at http://www.oracle.com/technology/obe/obe1013jdev/10131/devdepandmanagingws/devdepandmanagingws.htm demonstrates creating a web service from a plain java class. I'm wondering:
    - Is it possible to create a web service from a stateless session bean instead of a java class? If so, what's the proper way to do this in JDeveloper? When I tried doing so in JDeveloper 10.1.3.0.4 (SU5) using the J2EE Web Service wizard, the wizard did not list the session bean in the Component To Publish dropdown (it does list any java classes available in the project). I can proceed by manually typing in the name of the session bean. After the wizard completes though, the @Stateless annotation that had been in my session bean class code is removed and replaced by a @WebService annotation. The end result is that it looks like it made no difference whether I had tried to create the web service from a session bean or plain java class as the annotations in the resulting web service code are the same (although if I had started from a session bean, the class for the web service still implements the Local/Remote EJB interface that the session bean originally implemented).
    - Assuming it's possible to create a web service from a stateless session bean, is there any advantage/disadvantage creating a web service from a java class vs a stateless session bean? I'm creating the web service from scratch so I also need to either build the java class or stateless session bean the web service would be based on from scratch too.
    Thanks for any ideas about this.

    Hi,
    EJB Session beans (EJB 3.0) are deployed as WebServices by annotating the class with @WebService and the methds with @WebMethod (both tags require you to add the JSR-181 library to your project (available in the JDeveloper list of libraries)). Unlike the J2E WebService, the EJB session bean service is turned into a WebService upon deployment. This means you obtain teh WSDL file after deployment
    - Assuming it's possible to create a web service from a stateless session bean, is there any advantage/disadvantage creating a web service from a java class vs a stateless session bean?
    The difference is that EJB Session bean based web services are integrated with the J2EE container, which means that they can leverage container services like transaction handling, data sources, security, JMS etc.
    Frank

  • 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!

  • SAP Cloud Application Studio Create Custom Web Service From Custom Business Object and Consume in External System

    Hi Experts,
    I have requirement to create custom business object and create Web Service for that and use in external system (SAP ECC / SAP CRM / Third Party).
    1) Is it possible to create custom object web service and used in external system ?
    2) When we create the Web service from custom business object what the necessary steps(action : Create , Read , Update) require?
    3) Sample Scenario :
    My Custom Business Object
    businessobject Custom_Integration {
      element EP_VAL1 : LANGUAGEINDEPENDENT_MEDIUM_Text;
      element EP_VAL2 : LANGUAGEINDEPENDENT_MEDIUM_Text;
      element IP_RES : LANGUAGEINDEPENDENT_MEDIUM_Text;
    I have created the Web Service using this custom business object.
    3) How i can use this web service in external system? what are the prerequisite steps in external system to consume this service in it?
    Please anyone have idea about this how to do this and how to achieve this using SDK and custom business object.
    Many Thanks
    Mithun

    Hello Mithun,
    Does this section in the documentation help you:
    SAP Cloud Applications Studio Help -> Developers Desktop -> Web Services
    The entry "Task -> Create a Web Service" describes how to create a Web Service on your own BO
    The entry "Task -> Test a Web Service" helps you how you can use it in a foreign tool / application.
    HTH,
       Horst

  • Creating a Web Service From an existing Java Project

    Hi folks,
    I'm new to web services and SAP Netweaver so I need to know if I can use my exisiting Java codes (not EJB's though) for creating web services and the WSDL. I've already gotten the codes working and all and just need to make them into web services and deploy them (plus give my WSDL).
    I've noticed in some samples that they used EJB's for creating new web services and I've been trying to find samples/steps on just creating webservices from exisitng java codes. I've been using AXIS but I've been told that creating web services using the Netweaver Developer Studio is rather easy.
    Thanks in advance!

    Hi Amol!
    Thanks for the link
    I was trying it out, but could you see if this was correct:
    I just made one simple java project (with one class file) and using the link you sent me and did just the step for using the web service Creation Wizard. I made it say Test service and got into the Web Services Explorer but it says it couldn't open my wsdl:
    IWAB0379E Unable to open http://localhost:50000/HelloBeanService/HelloBean?wsdl.
    IWAB0135E An unexpected error has occurred.
    WSDLException
    WSDLException: faultCode=OTHER_ERROR: http://localhost:50000/HelloBeanService/HelloBean?wsdl
    Did I miss a step?
    Thanks again!

  • Can we create a Web Service from a Business Object??

    Hello All,
    Has anyone created a Web Service using a Business Object?
    When I am trying to create a Web Service in TM box, I can see that couple of options like Business Objects, Process Agents are disabled and rest like Consumer Group, Service Provider are enabled. Any idea why this is happening. Is this related to some configuration setting.
    Regards,
    Abhishek

    please elaborate in which environment or case you are creating Web Service from Business Object.As per my understanding we generally create web service through Wizard.
    Thanks
    Snehasish

  • Problem creating Web Service in 11g from PeopleSoft WSDL

    I created a Web Service in PeopleSoft (Tool 8.48 Release 9.0) from a Component Interface based on POSITION_DATA. Trying to create a web service in JDeveloper 11g to connect to this. Create a New Web Service, type Web Service Proxy. Select JAX-RPC Web Logic Style. Paste in the WSDL address (http://xxx.com:11001/PSIGW/PeopleSoftListeningConnector/CI_Z_POSITION_DATA.1.wsdl). No matter what type or style I get the same error.
    The document: http://xxx.com:11001/PSIGW/PeopleSoftListeningConnector/CI_Z_POSITION_DATA.1.wsdl is not a wsdl file or does not have a root element of "definitions" in the "http://schemas.xmlsoap.org/wsdl/" namespace or the "http://www.w3.org/2004/08/wsdl" namespace.:
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseDefinition(WSDLReaderImpl.java:723)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:661)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:610)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:333)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:570)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:548)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:372)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:294)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.fetchWSDL(SpecifyWsdlPanel.java:1002)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlAndMappingFilePanel.fetchWSDL(SpecifyWsdlAndMappingFilePanel.java:232)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$1.run(SpecifyWsdlPanel.java:346)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:643)
         at java.lang.Thread.run(Thread.java:619)
    The WSDL looks like this. When I access it directly in IE it says it is active. Any one have any thoughts?
    <?xml version="1.0"?>
    <wsdl:definitions name="CI_Z_POSITION_DATA.1" targetNamespace="http://xmlns.oracle.com/Enterprise/Tools/services/CI_Z_POSITION_DATA.1" xmlns:M264705.V1="http://xmlns.oracle.com/Enterprise/Tools/schemas/M264705.V1" xmlns:M650531.V1="http://xmlns.oracle.com/Enterprise/Tools/schemas/M650531.V1" xmlns:M970925.V1="http://xmlns.oracle.com/Enterprise/Tools/schemas/M970925.V1" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://xmlns.oracle.com/Enterprise/Tools/services/CI_Z_POSITION_DATA.1" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy">
    <wsp:UsagePolicy wsdl:Required="true"/>
    <plnk:partnerLinkType name="CI_Z_POSITION_DATA_PartnerLinkType">
    <plnk:role name="CI_Z_POSITION_DATA_Provider">
    <plnk:portType name="tns:CI_Z_POSITION_DATA_PortType"/>
    </plnk:role>
    </plnk:partnerLinkType>
    <wsdl:types>
    <xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="http://xmlns.oracle.com/Enterprise/Tools/schemas/M970925.V1" schemaLocation="M970925.V1.xsd"/>
    <xsd:import namespace="http://xmlns.oracle.com/Enterprise/Tools/schemas/M650531.V1" schemaLocation="M650531.V1.xsd"/>
    <xsd:import namespace="http://xmlns.oracle.com/Enterprise/Tools/schemas/M264705.V1" schemaLocation="M264705.V1.xsd"/>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="M970925.V1">
    <wsdl:documentation>M970925</wsdl:documentation>
    <wsdl:part element="M970925.V1:Get__CompIntfc__Z_POSITION_DATA" name="parameter"/>
    </wsdl:message>
    <wsdl:message name="M650531.V1">
    <wsdl:documentation>M650531</wsdl:documentation>
    <wsdl:part element="M650531.V1:Get__CompIntfc__Z_POSITION_DATAResponse" name="parameter"/>
    </wsdl:message>
    <wsdl:message name="M264705.V1">
    <wsdl:documentation>M264705</wsdl:documentation>
    <wsdl:part element="M264705.V1:IBResponse" name="parameter"/>
    </wsdl:message>
    <wsdl:portType name="CI_Z_POSITION_DATA_PortType">
    <wsdl:operation name="CI_Z_POSITION_DATA_G">
    <wsdl:documentation>CI_Z_POSITION_DATA_G</wsdl:documentation>
    <wsdl:input message="tns:M970925.V1" name="M970925.V1"/>
    <wsdl:output message="tns:M650531.V1" name="M650531.V1"/>
    <wsdl:fault message="tns:M264705.V1" name="M264705.V1"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="CI_Z_POSITION_DATA_Binding" type="tns:CI_Z_POSITION_DATA_PortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="CI_Z_POSITION_DATA_G">
    <soap:operation soapAction="CI_Z_POSITION_DATA_G.V1" style="document"/>
    <wsp:Policy wsu:Id="UsernameTokenSecurityPolicyPasswordOptional" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsp:ExactlyOne>
    <wsp:All>
    <wsse:SecurityToken wsp:Usage="wsp:Required" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <wsse:TokenType>wsse:UserNameToken</wsse:TokenType>
    <Claims>
    <SubjectName MatchType="wsse:Exact"/>
    <UsePassword wsp:Usage="wsp:Optional"/>
    </Claims>
    </wsse:SecurityToken>
    </wsp:All>
    </wsp:ExactlyOne>
    </wsp:Policy>
    <wsdl:input name="M970925.V1">
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
    </wsdl:input>
    <wsdl:output name="M650531.V1">
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
    </wsdl:output>
    <wsdl:fault name="M264705.V1">
    <soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="M264705.V1" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="CI_Z_POSITION_DATA">
    <wsdl:documentation>CI_Z_POSITION_DATA</wsdl:documentation>
    <wsdl:port binding="tns:CI_Z_POSITION_DATA_Binding" name="CI_Z_POSITION_DATA_Port">
    <soap:address location="http://ORACLE_ENDPOINT"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    Hi,
    Looking at your document URL for the WSDL, the PeopleSoft IB should contain "Service" in it's name, it looks like you are using your IB Gateway URL instead.
    This is what you posted:
    - http://xxx.com:11001/PSIGW/PeopleSoftListeningConnector/CI_Z_POSITION_DATA.1.wsdl
    Try the following and this should resolve your problem.
    - http://xxx.com:11001/PSIGW/PeopleSoftServiceListeningConnector/CI_Z_POSITION_DATA.1.wsdl
    Regards,
    Dan

  • Creating a Web Service from EJB 3.0 - J2SE 5.0 Collection mapping problem

    Hi,
    Apologies if this is the wrong forum, I'm not quite sure where it fits in.
    I have some Toplink JPA entity beans that I access through a session bean. I am then trying to create a web service based on the session bean by deploying it to a 10.1.3 application server. This is based on the documentation at http://download.oracle.com/docs/cd/B31017_01/core.1013/b28764/web_services002.htm#CHDJEDDH
    The two entity beans are like:
    public class Event {
    private java.util.List<EventDetail> eventDetailList;
    public Event() {
    public void setEventDetails(java.util.List<EventDetail> eventDetailList) {
    this.eventDetailList = eventDetailList;
    public java.util.List<EventDetail> getEventDetails() {
    return eventDetailList;
    public void addEventDetail(EventDetail eventDetail) {
    this.eventDetailList.add(eventDetail);
    public class EventDetail {
    public EventDetail() {
    The session bean has a method like:
    List<Event> listParents();
    When this is deployed to the application server I expected a complex type like ListOfEventDetail to be generated in the WSDL, as shown in http://download.oracle.com/docs/cd/B32110_01/web.1013/b28975/apptypemapping.htm#sthref966, and the Event complex type would have an element of ListOfEventDetail. Instead the Event complex type looks like this:
    <complexType name="Event">
    <sequence>
    <element name="eventDetails" type="ns1:list" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="EventDetail">
    <sequence/>
    </complexType>
    and ns1:list appears in a different schema:
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.oracle.com/webservices/internal/literal" targetNamespace="http://www.oracle.com/webservices/internal/literal" elementFormDefault="qualified">
    <import namespace="http://wsdl/"/>
    <complexType name="list">
    <complexContent>
    <extension base="tns:collection">
    <sequence/>
    </extension>
    </complexContent>
    </complexType>
    <complexType name="collection">
    <sequence>
    <element name="item" type="anyType" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    </schema>
    However, if I change the getters and setters for eventDetailList in Event to setDetails and getDetails like this:
    public void setDetails(java.util.List<EventDetail> eventDetailList) {
    this.eventDetailList = eventDetailList;
    public java.util.List<EventDetail> getDetails() {
    return eventDetailList;
    the WSDL is generated as I expected:
    <complexType name="EventDetail">
    <sequence/>
    </complexType>
    <complexType name="Event">
    <sequence>
    <element name="details" type="tns:ListOfEventDetail" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="ListOfEventDetail">
    <sequence>
    <element name="item" type="tns:EventDetail" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    After messing around with various combinations of things, it seems that if the getters and setters have more than just the initial capital letter the (eg getTheThings instead of getThings) the WSDL gets messed up. Does anyone have any ideas what is going on here?

    Using <autotype> and <source2wsdd> to generate what I need. Now WL seems happy.

  • How can I create a web Service from my Web Dynpro Application ?

    Hi,
    Kindly let me know How I could create a "Web Service" with my Web Dynpro DC project.
    Awaiting your responses.
    Regards,
    Mahesh

    Hi Mahesh,
          You can use the web services by creating the Model in web Dynpro
    And if you want to publish your own web service then you have to create a EJB module and publish as a web service.
    Thanks
    Ninad

  • Creating A Web Service from a Function Module in ERP2004

    I have searched for documentation on this without success.
    I would be grateful if anyone could point me in the direction of any documentation on this subject, how to do it and what infrastructure needs to be in place for it to work.
    Many Thanks
    David

    WAS640 makes the creation and consumption of web services very easy. Here is a help document to give you a step-by-step of how to create a web service in ABAP.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/37/01a7408f031414e10000000a1550b0/frameset.htm
    Hope this helps.
    Sudha

  • Web service using jdev 10.1.3

    Hi all....
    i am trying to build a web service using oracle jdev 10.1.3.
    i have built a simple java class that return common type such as String, int, long and publish theses method as web service and it works successfully......
    but when i tried to build web service that return complex type
    i.e.
    //////////////// class that i need to create a web service from it ///////////////////////
    public calss webService {
    public Subscriber getSubscriber(){
    return new Subscriber();
    public int getID(){
    return 10;
    where Subscriber is a java object i have create.
    public class Subscriber implements Serializable {
    private String name;
    public String getName(){
    return "Name";
    when creating the web service, the getSubscriber method was not published but the getID is published.
    any idea of how to make a web service that return a complex type....... i n
    web service steps:
    http://www.orablogs.com/cmaxwell/archives/000629.html

    As per the 10.1.3 Preview Relase Notes :
    Working with OC4J 10.1.2 : By default, JDeveloper 10.1.3 works with OC4J 10.1.3. However due to bug 3989799 it cannotconnect to OC4J 10.1.2 in the same session. Testing a connection or expanding a connection will fail with an exception. Additionally, deployment will succeed, but JDeveloper will be unable to detect and report the port number needed to access any deployed web applications via HTTP. You can enable 10.1.2 support by uncommenting the line: # AddVMOption -Drmi.disablePropagation=true in the jdev.conf file (located in jdev\bin) by removing the initial '#' character and restarting JDeveloper. Note, however, that enabling this setting will prevent JDeveloper from connecting to OC4J 10.1.3 instances, including the OC4J installation provided with JDeveloper. Comment the line then restart to restore 10.1.3 connectivity.
    Hope this helps.. Sunil..

  • Doubts developing web services on JDev 10.1.3.0.4

    Hi,
    I was trying to follow this guide
    http://www.oracle.com/technology/oramag/webcolumns/2003/techarticles/balusamy.html
    in order to develop this web service on Jdev 10.1.3.0.4.
    But the menus are different from the version used on the tutorial. I´m having some difficulties with the selections that i have to make in the menus. Also, after trying several options, the files generated are different from the ones that appear on this tutorial.
    Does anyone know how to reproduce this tutorial on this version of jdev ?
    Thanks.

    Hi,
    The guide you were refering was pointing to 10.1.2 wizards.
    For the latest 10.1.3 tutorial, please follow the below tutorial link :
    http://www.oracle.com/technology/products/jdev/101/tutorials/WS/WSandAScontrol.htm
    Hope this helps,
    Sunil..

  • 'schema is missing for the component ' while creating a web service

    Hello,
    I am trying to create a web service in Application Explorer on my dev server as described in:
    http://download-east.oracle.com/docs/cd/B31017_01/integrate.1013/b28996/config.htm#BABBJHHF
    I use an adapter for JDE Edwards EnterpriseOne. After supplying the parameters (service, license, method name) I get: com.ibi.bse.AddWSWorker:java.lang.Exception: schema is missing for the component.
    I think the environment (JDE system, GenJava files) is configured correctly as I am able to communicate using J2CA.
    Debug mode produces ibse_log.txt with some errors (below) but this does not give me a clue to the solution. Could you point me in the right direction?
    20070507-16:54:04 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:adapter factory method: [GETCOMPONENT]
    20070507-16:54:04 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:iwae method: [GETCOMPONENT] with idx [4]
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.edaqm.XDClassLoader:com/jdedwards/application/interop/jdejava_cfin/D0100033.class found as url jar:file:///C:\oracle\product\10.1.2\as_1\adapters\application\lib\JDEJAVA_CFINInterop.jar!/com/jdedwards/application/interop/jdejava_cfin/D0100033.class
    20070507-16:54:05 ERROR com.iwaysoftware.ibse.iwse.SimpleConfig:Error, properties generation
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:output:<?xml version="1.0" encoding="UTF-8" ?>
    <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <GETCOMPONENTResponse xmlns="urn:schemas-iwaysoftware-com:dec2002:iwse:af">
    <sid>2FDCA46F4D0D87AEBB2EF26FDF3949B4</sid>
    </GETCOMPONENTResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    20070507-16:54:05 INFO com.iwaysoftware.ibse.iwse.IBSEServlet:Received connection from host [10.1.1.27] with ip [10.1.1.27] and user [null]
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:Enter: doPost()...
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:request pathInfo [XDSOAPAdapterFactory]
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:request query [null]
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:soap action is []
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:<?xml version="1.0" encoding="UTF-8" ?>
    <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
    <ibsinfo xmlns="urn:schemas-iwaysoftware-com:dec2002:iwse:af">
    <service>iwae</service>
    <method>GETSCHEMA</method>
    <license>admin</license>
    <disposition/>
    <Username>ibseadmin</Username>
    <Password>1234512340023212232</Password>
    </ibsinfo>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <GETSCHEMA xmlns="urn:schemas-iwaysoftware-com:dec2002:iwse:af">
    <sid>2FDCA46F4D0D87AEBB2EF26FDF3949B4</sid>
    <component location="services/JDEJAVA_CFIN/B0100033/GetEffectiveAddress" name="GetEffectiveAddress"/>
    </GETSCHEMA>
    </SOAP-ENV:Body>
    <SOAPAction agentName="XDSOAPAdapterFactory" cid="1D90AB1A134EFDA81C656CA404EEC38D"></SOAPAction>
    </SOAP-ENV:Envelope>
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:adapter factory method: [GETSCHEMA]
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:iwae method: [GETSCHEMA] with idx [17]
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.edaqm.XDClassLoader:com/jdedwards/application/interop/jdejava_cfin/D0100033.class found as url jar:file:///C:\oracle\product\10.1.2\as_1\adapters\application\lib\JDEJAVA_CFINInterop.jar!/com/jdedwards/application/interop/jdejava_cfin/D0100033.class
    20070507-16:54:05 ERROR com.iwaysoftware.ibse.iwse.SimpleConfig:Error, schema generation
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.edaqm.XDClassLoader:com/jdedwards/application/interop/jdejava_cfin/D0100033.class found as url jar:file:///C:\oracle\product\10.1.2\as_1\adapters\application\lib\JDEJAVA_CFINInterop.jar!/com/jdedwards/application/interop/jdejava_cfin/D0100033.class
    20070507-16:54:05 ERROR com.iwaysoftware.ibse.iwse.SimpleConfig:Error, schema generation
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:output:<?xml version="1.0" encoding="UTF-8" ?>
    <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <GETSCHEMAResponse xmlns="urn:schemas-iwaysoftware-com:dec2002:iwse:af"/>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    20070507-16:54:19 INFO com.iwaysoftware.ibse.iwse.IBSEServlet:Received connection from host [10.1.1.27] with ip [10.1.1.27] and user [null]
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:Enter: doPost()...
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:request pathInfo [XDSOAPAdapterFactory]
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:request query [null]
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:soap action is []
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:<?xml version="1.0" encoding="UTF-8" ?>
    <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
    <ibsinfo xmlns="urn:schemas-iwaysoftware-com:dec2002:iwse:af">
    <service>iwae</service>
    <method>ADDWS</method>
    <license>admin</license>
    <disposition/>
    <Username>ibseadmin</Username>
    <Password>1234512340023212232</Password>
    </ibsinfo>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <ADDWS xmlns="urn:schemas-iwaysoftware-com:dec2002:iwse:af">
    <sid>2FDCA46F4D0D87AEBB2EF26FDF3949B4</sid>
    <component location="services/JDEJAVA_CFIN/B0100033/GetEffectiveAddress" name="GetEffectiveAddress"/>
    <svcname>test6</svcname>
    <svcdesc>test6</svcdesc>
    <licname>test</licname>
    <mthname>GetEffectiveAddress</mthname>
    <mthdesc>test6</mthdesc>
    </ADDWS>
    </SOAP-ENV:Body>
    <SOAPAction agentName="XDSOAPAdapterFactory" cid="FC73705AC1A76B30A602E68CCD627EC2"></SOAPAction>
    </SOAP-ENV:Envelope>
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:adapter factory method: [ADDWS]
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:iwae method: [ADDWS] with idx [9]
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.edaqm.XDClassLoader:com/jdedwards/application/interop/jdejava_cfin/D0100033.class found as url jar:file:///C:\oracle\product\10.1.2\as_1\adapters\application\lib\JDEJAVA_CFINInterop.jar!/com/jdedwards/application/interop/jdejava_cfin/D0100033.class
    20070507-16:54:19 ERROR com.iwaysoftware.ibse.iwse.SimpleConfig:Error, schema generation
    20070507-16:54:19 ERROR com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:XD[FAIL] cause: 0 subcause: 0 message: schema is missing for the component
         at com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory.buildSchemaInfo(XDSOAPAdapterFactory.java:1556)
         at com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory.addMethod(XDSOAPAdapterFactory.java:1628)
         at com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory.addService(XDSOAPAdapterFactory.java:1492)
         at com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory.handleADDWS(XDSOAPAdapterFactory.java:1376)
         at com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory.processWithDB(XDSOAPAdapterFactory.java:1858)
         at com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory.process(XDSOAPAdapterFactory.java:186)
         at com.iwaysoftware.ibse.iwse.IBSEServlet.doPost(IBSEServlet.java:550)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    pawel

    There is a note 1818432 for this issue.

Maybe you are looking for

  • How to edit a downloaded .pdf file?

    Hi! Have a downloaded .pdf file, (application for employment form) My options are to print out/fill out. I want to know if there is a way that I can edit the application so that I can fill it out on line (Neater) then print. Between a 2004 version of

  • Zen V Plus battery fail to charge. He

    So I've had my Zen for a little more than a year. I don't have a working computer anymore so I can't charge it through there. So I went out and got one of those wall chargers that's USB compatible, but it won't charge at all. Sometimes the buttons wi

  • Inserting html into a composition in muse

    Hi, I am trying to insert some html into a composition in Muse.  I would like to have a clickable button trigger, and then a kind of overlay opens up with an interactive calculator inside.  I have the html for the calculator, the problem is no matter

  • Class java.lang.NullPointerException thrown on deploying Support Packages

    Hello Everybody, My version of <b>Enterprise Portal is 6.0</b> .Earlier the <b>Support Pack Stack level was SP</b>S09 After deploying <b>Support Pack Stack level SPS16</b> for <b>J2ee Engine</b>,<b>Portal Platform</b> and <b>KMC</b> and restarting th

  • Where can I find a list of NI-DAQ functions supported over the RDA server?

    Hello, I am developing an application in Microsoft VisualC++ for PXI6071E MIO card remotely using RDA server. What I found out is that not all the functions described in the "Traditional NI-DAQ Function Reference Help" shipped with NI-DAQ version 7.0