Invoke web service created from workshop

Hi,
I am trying to write a stand alone java client to connect to web service created
from workshop( please see the attached wsdl file), but can't get it work. Did
somebody know why. Here is my java client code :
import java.net.URL;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Service;
import javax.xml.rpc.Call;
import javax.xml.namespace.QName;
import weblogic.webservice.context.WebServiceContext;
import weblogic.webservice.context.WebServiceSession;
import weblogic.webservice.context.WebServiceHeader;
public class OrderTestClient {
public static void main(String[] args) {
try {
// Setup the global JAXM message factory
System.setProperty("javax.xml.soap.MessageFactory",
"weblogic.webservice.core.soap.MessageFactoryImpl");
// Setup the global JAX-RPC service factory
System.setProperty("javax.xml.rpc.ServiceFactory",
"weblogic.webservice.core.rpc.ServiceFactoryImpl");
// create service factory
ServiceFactory factory = ServiceFactory.newInstance();
// define qnames
//String targetNamespace = "http://localhost/orderweb";
String targetNamespace = "http://www.openuri.org/";
QName serviceName = new QName(targetNamespace, "newsmlorder");
QName portName = new QName(targetNamespace, "newsmlorderSoap");
//QName operationName = new QName("tns:newsmlorderSoap", "getUserAddress");
QName operationName = new QNam("http://localhost:7021/orderweb/", "getUserAddress");
URL wsdlLocation = new URL("http://localhost:7021/orderweb/newsmlorder.jws?WSDL");
// create service
Service service = factory.createService(wsdlLocation, serviceName);
// create call
Call call = service.createCall(portName, operationName);
WebServiceContext wsContext = WebServiceContext.currentContext();
WebServiceSession session =(WebServiceSession)wsContext.getSession();
System.out.println(" Session : " + session.toString() );
System.out.println(" == step 11 ===");
// invoke the remote web service
System.out.println(" == step 12 ===");
String result = (String) call.invoke(new Object[] {"testPing"});
System.out.println("test result : " + result);
catch (Exception e) {
System.out.println("test result : " + e.getMessage());
[order.wsdl]

Hi,
I did not get any error, however the service call is always return null even though
I hard code return String, so I knew it failed.
I tried your following code and it worked. You mention that I have to download
proxy.jar from workshop overview page, but I can't find it. Would you please tell
me where to find the download menu in workshop.
If I want to build a dynamic stand alone client to invoke service created from
workshop ( my original approach), what should I do?
I am trying to use workshop to handle multipart soap message (soap message with
attachments), could you please send me a example ?
Very appreciate your help!
Thanks again.
Lina
Vimala Ranganathan" <[email protected]> wrote:
>
>
>
Hi Lina,
Are you getting any errors?
Did you happen to try with a static client? Is that working?
(For static client you have to download the proxy jar from the workshop
overview
page and have it in the classpath)
I have attacjhed the proxy jar and here is a sample client. Let me know
how this
goes.
public class Test
public static void main(String [] args)
     Newsmlorder_Impl m_proxyImpl = null;
     NewsmlorderSoap m_proxy = null;
     try
          m_proxyImpl = new Newsmlorder_Impl();
          catch (IOException ex)
          System.out.println("Error getting proxy");
          ex.printStackTrace();
          m_proxy = m_proxyImpl.getnewsmlorderSoap();
          GetUserAddress p = m_proxy.getUserAddress();
Thanks a lot,
Vimala Ranganathan
"Lina Li" <[email protected]> wrote:
Hi,
I am trying to write a stand alone java client to connect to web service
created
from workshop( please see the attached wsdl file), but can't get itwork.
Did
somebody know why. Here is my java client code :
import java.net.URL;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Service;
import javax.xml.rpc.Call;
import javax.xml.namespace.QName;
import weblogic.webservice.context.WebServiceContext;
import weblogic.webservice.context.WebServiceSession;
import weblogic.webservice.context.WebServiceHeader;
public class OrderTestClient {
public static void main(String[] args) {
try {
// Setup the global JAXM message factory
System.setProperty("javax.xml.soap.MessageFactory",
"weblogic.webservice.core.soap.MessageFactoryImpl");
// Setup the global JAX-RPC service factory
System.setProperty("javax.xml.rpc.ServiceFactory",
"weblogic.webservice.core.rpc.ServiceFactoryImpl");
// create service factory
ServiceFactory factory = ServiceFactory.newInstance();
// define qnames
//String targetNamespace = "http://localhost/orderweb";
String targetNamespace = "http://www.openuri.org/";
QName serviceName = new QName(targetNamespace, "newsmlorder");
QName portName = new QName(targetNamespace, "newsmlorderSoap");
//QName operationName = new QName("tns:newsmlorderSoap","getUserAddress");
QName operationName = new QNam("http://localhost:7021/orderweb/",
"getUserAddress");
URL wsdlLocation = new URL("http://localhost:7021/orderweb/newsmlorder.jws?WSDL");
// create service
Service service = factory.createService(wsdlLocation, serviceName);
// create call
Call call = service.createCall(portName, operationName);
WebServiceContext wsContext = WebServiceContext.currentContext();
WebServiceSession session =(WebServiceSession)wsContext.getSession();
System.out.println(" Session : " + session.toString() );
System.out.println(" == step 11 ===");
// invoke the remote web service
System.out.println(" == step 12 ===");
String result = (String) call.invoke(new Object[] {"testPing"});
System.out.println("test result : " + result);
catch (Exception e) {
System.out.println("test result : " + e.getMessage());

Similar Messages

  • Invoking web service using Weblogic Workshop (JCX)

    Invoking web service using Weblogic Workshop
    Posted: 5 Jan 2005 23:31 PM Reply
    Hi,
    I have WSDL from which I have generated a web service control (.jcx) using Weblogic Workshop.
    I need to write a client which will invoke the web service using the control.
    Can someone help me on how to go about this ?
    BTW .. I also tried the clientgen route and tried to generated the proxy jar from the WSDL but wasn't successful because of a existing clientgen bug.
    Refer bug

    Hi,
    if the consumer of the webservice is a control-aware consumer ( pageflow, control, process ) simply drag the control to this consumer and the control variable is ready for use.
    if the consumer is not control-aware, try to generate a proxy using eg. the axis tool, or handcode your proxy class.
    links :
    how to use webservice control
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/conGettingStartedWithJavaControls.html
    axis
    http://ws.apache.org/axis/
    - Anders M.
    - Anders M.

  • Adding Faults to Web Services created from JCDs

    Is anyone aware of a way to add faults, other than the default JavaException, to the service definition of a web service created from a JCD?

    Hi
    You could use se80 and click "Repository Information system"->Enterprise Services->
    Service Definitions->search your WebService Defition->Delete it.

  • Web Service created from Function Module with output tables

    Hello,
    I created a web service from a custom function module.  This Function module has some export parameters and one table.
    The table parameter returns a list of data for selection.
    When I execute the function module, everything is returned fine.
    When I call the web service, the export parameters are returned but the table is empty.
    Has anyone encountered that kind of issue?
    Thanks!
    Laurent

    Please check the following few things while testing the WS:
    - Test the WS with WS Navigator (accessible from transaction WSADMIN or http://<server host>:<port>/wsnavigator/enterwsdl.html).
    - While doing the test, give the exact no. of digit if there is some input parameter (with 0 padding if necessary).
    - Make sure the "SKIP" check box against the table parameter is NOT checked.
    Regards
    Nilay

  • Detele Web Services created from BAPIs

    Hello,
    I just created some Web Services from some BAPIs using the wizard. I would like to rebuild these WSs, but first of all I should delete them.
    I can see them with transaction WSCONFIG, but I can't find a way to delete them.
    Can you tell me how to completely delete them?
    Yours,
    jmiturbe

    Hi
    You could use se80 and click "Repository Information system"->Enterprise Services->
    Service Definitions->search your WebService Defition->Delete it.

  • How to invoke web services BPEL from ODI

    Hi All,
    I tried to invoke a BPEL Web service through OdiInvokeWebService tool, and throws me the following message:
    Request invalid. NullPointerException*
    This is the WSDL that I need to consume
    <?xml version="1.0" encoding="UTF-8"?>
    <WL5G3N0:definitions name="Contabilidad" targetNamespace="http://xmlns.oracle.com/Contabilidad" xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/" xmlns:WL5G3N1="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:WL5G3N2="http://xmlns.oracle.com/Contabilidad" xmlns:WL5G3N3="xs" xmlns:WL5G3N4="r" xmlns:WL5G3N5="http://schemas.xmlsoap.org/wsdl/soap/">
    <WL5G3N0:import location="http://10.10.10.207:7021/pruebaOSB/servicioProxyOSB_Contabilidad?WSDL%2FpruebaOSB%2FRuntimeFault_Contabilidad" namespace="http://schemas.oracle.com/bpel/extension"/>
    <WL5G3N1:partnerLinkType name="Contabilidad">
    <WL5G3N1:role name="ContabilidadProvider">
    <WL5G3N1:portType name="WL5G3N2:Contabilidad"/>
    </WL5G3N1:role>
    </WL5G3N1:partnerLinkType>
    <WL5G3N0:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:client="http://xmlns.oracle.com/Contabilidad" xmlns:ns1="http://schemas.oracle.com/bpel/extension" xmlns:ns2="xs" xmlns:ns3="r" 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/Contabilidad">
    <import namespace="xs" schemaLocation="http://10.10.10.207:7021/pruebaOSB/servicioProxyOSB_Contabilidad?SCHEMA%2FpruebaOSB%2FSeguridad.xsd"/>
    </schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:client="http://xmlns.oracle.com/Contabilidad" xmlns:ns1="http://schemas.oracle.com/bpel/extension" xmlns:ns2="xs" xmlns:ns3="r" 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/Contabilidad">
    <import namespace="r" schemaLocation="http://10.10.10.207:7021/pruebaOSB/servicioProxyOSB_Contabilidad?SCHEMA%2FpruebaOSB%2FRespuesta.xsd"/>
    </schema>
    </WL5G3N0:types>
    <WL5G3N0:message name="ContabilidadRequestMessage">
    <WL5G3N0:part element="WL5G3N3:Root" name="root"/>
    </WL5G3N0:message>
    <WL5G3N0:message name="ContabilidadResponseMessage">
    <WL5G3N0:part element="WL5G3N4:Respuesta" name="respuesta"/>
    </WL5G3N0:message>
    <WL5G3N0:portType name="Contabilidad">
    <WL5G3N0:operation name="process">
    <WL5G3N0:input message="WL5G3N2:ContabilidadRequestMessage"/>
    <WL5G3N0:output message="WL5G3N2:ContabilidadResponseMessage"/>
    </WL5G3N0:operation>
    </WL5G3N0:portType>
    <WL5G3N0:binding name="ContabilidadBinding" type="WL5G3N2:Contabilidad">
    <WL5G3N5:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <WL5G3N0:operation name="process">
    <WL5G3N5:operation soapAction="process" style="document"/>
    <WL5G3N0:input>
    <WL5G3N5:body use="literal"/>
    </WL5G3N0:input>
    <WL5G3N0:output>
    <WL5G3N5:body use="literal"/>
    </WL5G3N0:output>
    </WL5G3N0:operation>
    </WL5G3N0:binding>
    <WL5G3N0:service name="Contabilidad">
    <WL5G3N0:port binding="WL5G3N2:ContabilidadBinding" name="ContabilidadPort">
    <WL5G3N5:address location="http://DSKTEAAGRE05.sigfe.local:7021/pruebaOSB/servicioProxyOSB_Contabilidad"/>
    </WL5G3N0:port>
    </WL5G3N0:service>
    </WL5G3N0:definitions>
    I want to know how to invoke this webservice.(BPEL)
    Edited by: user9012955 on 05-08-2011 11:23 AM

    Hi All,
    I tried to invoke a BPEL Web service through OdiInvokeWebService tool, and throws me the following message:
    Request invalid. NullPointerException*
    This is the WSDL that I need to consume
    <?xml version="1.0" encoding="UTF-8"?>
    <WL5G3N0:definitions name="Contabilidad" targetNamespace="http://xmlns.oracle.com/Contabilidad" xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/" xmlns:WL5G3N1="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:WL5G3N2="http://xmlns.oracle.com/Contabilidad" xmlns:WL5G3N3="xs" xmlns:WL5G3N4="r" xmlns:WL5G3N5="http://schemas.xmlsoap.org/wsdl/soap/">
    <WL5G3N0:import location="http://10.10.10.207:7021/pruebaOSB/servicioProxyOSB_Contabilidad?WSDL%2FpruebaOSB%2FRuntimeFault_Contabilidad" namespace="http://schemas.oracle.com/bpel/extension"/>
    <WL5G3N1:partnerLinkType name="Contabilidad">
    <WL5G3N1:role name="ContabilidadProvider">
    <WL5G3N1:portType name="WL5G3N2:Contabilidad"/>
    </WL5G3N1:role>
    </WL5G3N1:partnerLinkType>
    <WL5G3N0:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:client="http://xmlns.oracle.com/Contabilidad" xmlns:ns1="http://schemas.oracle.com/bpel/extension" xmlns:ns2="xs" xmlns:ns3="r" 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/Contabilidad">
    <import namespace="xs" schemaLocation="http://10.10.10.207:7021/pruebaOSB/servicioProxyOSB_Contabilidad?SCHEMA%2FpruebaOSB%2FSeguridad.xsd"/>
    </schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:client="http://xmlns.oracle.com/Contabilidad" xmlns:ns1="http://schemas.oracle.com/bpel/extension" xmlns:ns2="xs" xmlns:ns3="r" 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/Contabilidad">
    <import namespace="r" schemaLocation="http://10.10.10.207:7021/pruebaOSB/servicioProxyOSB_Contabilidad?SCHEMA%2FpruebaOSB%2FRespuesta.xsd"/>
    </schema>
    </WL5G3N0:types>
    <WL5G3N0:message name="ContabilidadRequestMessage">
    <WL5G3N0:part element="WL5G3N3:Root" name="root"/>
    </WL5G3N0:message>
    <WL5G3N0:message name="ContabilidadResponseMessage">
    <WL5G3N0:part element="WL5G3N4:Respuesta" name="respuesta"/>
    </WL5G3N0:message>
    <WL5G3N0:portType name="Contabilidad">
    <WL5G3N0:operation name="process">
    <WL5G3N0:input message="WL5G3N2:ContabilidadRequestMessage"/>
    <WL5G3N0:output message="WL5G3N2:ContabilidadResponseMessage"/>
    </WL5G3N0:operation>
    </WL5G3N0:portType>
    <WL5G3N0:binding name="ContabilidadBinding" type="WL5G3N2:Contabilidad">
    <WL5G3N5:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <WL5G3N0:operation name="process">
    <WL5G3N5:operation soapAction="process" style="document"/>
    <WL5G3N0:input>
    <WL5G3N5:body use="literal"/>
    </WL5G3N0:input>
    <WL5G3N0:output>
    <WL5G3N5:body use="literal"/>
    </WL5G3N0:output>
    </WL5G3N0:operation>
    </WL5G3N0:binding>
    <WL5G3N0:service name="Contabilidad">
    <WL5G3N0:port binding="WL5G3N2:ContabilidadBinding" name="ContabilidadPort">
    <WL5G3N5:address location="http://DSKTEAAGRE05.sigfe.local:7021/pruebaOSB/servicioProxyOSB_Contabilidad"/>
    </WL5G3N0:port>
    </WL5G3N0:service>
    </WL5G3N0:definitions>
    I want to know how to invoke this webservice.(BPEL)
    Edited by: user9012955 on 05-08-2011 11:23 AM

  • How to access/invoke Web Service from BPM Process

    The following steps required to attach and invoke web service method from process:
    1) Add a module in the catalog for ex WebServiceMO
    2) Add WebService Catalog component demoWebService in WebServiceMO
    3) Put ur WSDL address in WSDL address field like "http://localhost:8080/test/test?wsdl"
    4) Click next to introspect the web service it will import required files and setting from the url to your project
    5) Now for invoking webservice just call the method for ex.
    @return as String[]
    getTestStringList(TestInterfaceService, out @return : @return)
    logMessage "web service calll result >>"+length(@return)+">>>"+@return[0]
    Here @ return is the return from webservice call.
    this way u can access web service from BPM process.
    Edited by: Anurag Yadav on Jul 17, 2009 2:19 PM

    I have a web service which does not return any value but when I introspect the web service, I have an out parameter to it.. Not sure why?
    For e.g.
    TestServiceListener.addTestNotes(TestNotes : testNotes, out TestNoteResponse : testNoteResponse);
    So here I see an out parameter, but my web-service has no out parameter...
    Any idea why is this happening?

  • Connection Refused while invoking Web Service from BPEL process

    Hie
    I am getting the following error when I try to invoke a web service (created in JDeveloper) from a BPEL process.
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="code">
    <code>Server.userException</code>
    </part>
    <part name="summary">
    <summary>when invoking endpointAddress '.......................', java.net.ConnectException: Connection refused: connect</summary>
    </part>
    <part name="detail">
    <detail>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.net.ConnectException: Connection refused: connect faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection refused:
    Did anyone come across a similar problem...??? Plz help:(

    Hi everybody,
    I have the same problem. I developed a sample bpel process and tried to access it form another one, but still having the same exception :
    <remoteFault>
    <part name="code" >
    <code>Server.userException</code>
    </part>
    <part name="summary" >
    <summary>when invoking endpointAddress 'http://set.by.caller', java.net.UnknownHostException: set.by.caller</summary>
    </part>
    <part name="detail" >.......
    Thanks for your help!
    miroo

  • Invoking Web Service From PL SQL package

    Below is the sample code to invoke web service from pl/sql package using UTL_HTTP:
    Declare
    http_req UTL_HTTP.req;
    http_resp UTL_HTTP.resp;
    Begin
    http_req :=
    UTL_HTTP.begin_request
    'http://'
    || lv_hosturl
    -- || '.net/soa-infra/services/finance_rt/Payments/paymentsprocess_client_ep',
    --new url
    || '.net/soa-infra/services/finance_rt/PaymentsReq/paymentsprocess_client_ep?WSDL',
    'POST',
    'HTTP/1.1'
    UTL_HTTP.set_header (http_req, 'Content-Type', 'text/xml');
    -- since we are dealing with plain text in XML documents
    UTL_HTTP.set_header (http_req,
    'Content-Length',
    LENGTH (lv_soap_request)
    UTL_HTTP.set_header (http_req, 'SOAPAction', '');
    -- required to specify this is a SOAP communication
    UTL_HTTP.write_text (http_req, lv_soap_request);
    http_resp := UTL_HTTP.get_response (http_req);
    UTL_HTTP.read_text (http_resp, lv_soap_respond);
    UTL_HTTP.end_response (http_resp);
    resp := XMLTYPE.createxml (lv_soap_respond);
    End;

    Hi,
    there are a lot of option to make plsql web services .
    First you can stay with jdev 10.1.3
    Use the xmldb servlets
    use jdev 11g tp4 to create plsql ws and upgrade to jdev 11g production
    And I think in the next release of jdev it will be back , there are more options which disappeared like the adf bc sdo ws or jmx datacontrol etc.
    thanks Edwin

  • How to create a generic method which invokes Web Service

    Hi I have a question how to create Web Service client. In design mode I can't specify static url ?WSDL and process.
    I found briliant method in apache cxf library.
    for example
    JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
    Client clientA = dcf.createClient("http://soabpm-vm:8001/soa-infra/services/default/MailSender/mailsender_client_ep?WSDL");
    Object[] resultA;
    try{
    resultA = clientA.invoke(new QName("http://xmlns.oracle.com/SynchDSBpel20/MailSender/MailSender", "process"), "@", "body", "topic");
    }catch (Exception e){}
    In my case I should create a method with params (urls ?WSDL, URI, operetion name, param1, praram2, param3)
    Is there anything like CXF in ADF library's?

    This can be very easily done using a web service proxy (Select web services from the categories and web service proxy from the items).
    In the "Create Web Service Proxy" wizard, make sure you select JAX-WS client style. JDeveloper will use the JAX-WS web service API and JAXB (Java Architecture for XML Binding) to generate all required classes and methods required to call a web services, binding Java method signatures to WSDL messages and operations.
    Regards
    Antonis

  • How to create Web Service Client from wsdl with digital signature?

    Please, help me to create Web Service Client from wsdl with digital signature. I know create Web Service client from wsdl file and I know how to add digital signature to XML with jwsdp, but I don't know how to do it together.
    Thanks.

    I'm handling security wit JAX-WS handler. So I insert "manually" ws-security tag and I encrypt (and sign) message parts.
    On client side, all works fine, but on server side I obtain:
    ---Server Inbound SOAP message---|#]
    Decrypting message and rebuilding Valuees... |#]
    Starting decrypt|#]
    . dectypted.!
    --found following string: <ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona>|#]
    ...MESSAGE Restored.|#]
    <?xml version="1.0" ?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ns1="http://calculator.me.org/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soapenv:Body><ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona></soapenv:Body></soapenv:Envelope>|#]
    Error in decoding SOAP Message
    Error in decoding SOAP Message
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:89)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:187)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:571)
            at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:145)
            at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:160)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:89)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:178)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:109)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:100)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: javax.xml.ws.soap.SOAPFaultException: Cannot find the dispatch method
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.raiseFault(SOAPDecoder.java:674)
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.decodeDispatchMethod(SOAPXMLDecoder.java:152)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBodyContent(SOAPDecoder.java:337)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBody(SOAPDecoder.java:327)
            at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeEnvelope(SOAPDecoder.java:250)
            at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:81)
            ... 29 more
    |#]
    --->handleFault O_o<---|#]If you have any idea for solving my problem, then I can post my simple example :(
    Bye!

  • Invoke web service in workshop 8.1

    Hello,
    How can I invoke a web service from Wrokshop 8.1?
    Is there any simple example?

    Hi
    If you want to invoke a external webservice from workshop where workshop is the client you can use service control to do so.
    You will find samples at BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebServices\service
    Also please check the documentation at http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/service/navServiceControl.html
    You can also use service controls to call workshop webservices/external webservices from an workshop webservice.
    Thanks
    Vimala

  • Error generating Web Service control in Workshop 9.2 from any wsdl

    When trying to generate web service control from service control wizard I get the following error:
    An error was encountered while generating types: null
    The full stack trace is:
    <pre>java.lang.reflect.InvocationTargetException
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:327)
         at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830)
         at com.bea.wlw.controls.service.ui.GenerateSCWizard.performFinish(GenerateSCWizard.java:213)
         at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
         at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
         at org.eclipse.jface.window.Window.open(Window.java:787)
         at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:110)
         at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
         at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
         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:585)
         at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
         at org.eclipse.core.launcher.Main.run(Main.java:973)
         at org.eclipse.core.launcher.Main.main(Main.java:948)
    Caused by: java.lang.NullPointerException
         at com.bea.wlw.controls.service.ui.GenerateSCWizard$Finisher.run(GenerateSCWizard.java:501)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    </pre>
    I have tried different wsdls simple and complex and still getting the same error. What could be the problem? Is it a bug or my misconfiguration? Has anybody succeded to generate service control in workshop 9.0 and above?

    Did you also get a CrashWeb dialog?
    Andrey Adamovich wrote:
    When trying to generate web service control from service control wizard I get the following error:
    An error was encountered while generating types: null
    The full stack trace is:
    <pre>java.lang.reflect.InvocationTargetException
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:327)
         at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830)
         at com.bea.wlw.controls.service.ui.GenerateSCWizard.performFinish(GenerateSCWizard.java:213)
         at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
         at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
         at org.eclipse.jface.window.Window.open(Window.java:787)
         at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:110)
         at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
         at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
         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:585)
         at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
         at org.eclipse.core.launcher.Main.run(Main.java:973)
         at org.eclipse.core.launcher.Main.main(Main.java:948)
    Caused by: java.lang.NullPointerException
         at com.bea.wlw.controls.service.ui.GenerateSCWizard$Finisher.run(GenerateSCWizard.java:501)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    </pre>
    I have tried different wsdls simple and complex and still getting the same error. What could be the problem? Is it a bug or my misconfiguration? Has anybody succeded to generate service control in workshop 9.0 and above?

  • Invoking web service from OBIEE11g failed socket timeout

    Hi,
    I encountered an error when I invoke web service from OBIEE 11g. The web serivce resides on Websphere running on other machine.
    An error says that "Invoking web service failed due to socket timeout." and it seems that it stopped in just 40 secs.
    Is there any settings of WebLogic server to avoid this? This web service normally runs for more than 60 sec.
    I have checked several parameters in WebLogic admin console and changed those values, but I still receive the same error.
    Invoking the same web service from SOAPUI sustains for more than 60 secs.
    Regards,
    Fujio Sonehara

    Don't be too surprised. Sun figured this bug out in short order. I got the same error message when trying to do the same thing, just for the heck of it. Reference this article for details.
    http://java.sun.com/webservices/docs/ea2/jaxrpc/ReleaseNotes.html
    It contains information about bugs fixed in the WSDP EA2. So in answer to your question, download the newer pack from
    http://java.sun.com/webservices/downloads/webservicespack.html
    and your bug will go away. Happy Coding.
    Legal Problems?
    Legal Solutions, for a lot less than you might think.
    [email protected]
    http://www.prepaidlegal.com/go/pritchard45

  • Web service client in Workshop 10.1

    Anybody have any advice on the best way to create a Web service CLIENT in Workshop 10.1 ?
    I've been looking around for a couple of days. I understand how to run clientgen from the command line. That works fine.
    I have looked at the tutorial for using 'Web service controls' also. As far as I can tell, though, in Workshop 10.1 I can only generate such a control nside another Web service, as in the tutorial. In other types of classes, the Insert option is not available on the menu I pull up by right-clicking in the source. I hope I am missing something obvious.
    My goal is to call Web services from other applications inside Workshop. The other applications may be Web applications or they may not. Most of the time they will not be other Web services.
    Thanks in advance for any help !!

    Thanks Vimala.
    I am able to create the JAR using clientgen, and I can call the Web service after that from the command line. All of that depends upon various environment variables being set with setDomainEnv.cmd and it works fine.
    I would like to create a Java project in Workshop 10.1 and use that JAR created with clientgen, but that does not work - I get an Exception wqhen I try to run, although it all compiles :
    Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/descriptor/BasicDescriptorManager
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at com.kohls.example.client.SimpleClient.main(SimpleClient.java:29)
    The classes are al lthere, or it would not compile, so I assume I am missing some of the scaffolding around calling the Web service. I just created a normal Java project - maybe that's wrong ?
    Edited by ethan_kohls at 01/18/2008 12:44 PM
    Edited by ethan_kohls at 01/18/2008 12:44 PM

Maybe you are looking for

  • Pulling data from other programs...

    Howdy, I have a bit of a question... in order for a program i'm building to work without a lot of excess calculations, I need to pull a number from another program, its in a field at the top of the screen something like this: |$12345678| ---------Is

  • In mail how do I get gmail to work

    IN mail for iPad 2 how do I get gmail working?

  • Creating a new instance ofthe database

    I'm working on Linux and communicate with the Oracle 8 database from my java program. My problem is ... I want to create a new instance of the database so that my diff. programs will communicate with diff. users., Please crack it out.

  • Macromedia Dreamweaver

    hi, i am in desperate need of help. why is it every time i open macromedia dreamweaver it shuts down by its self? can some please help me my virus scan and ad ware protected have black listed the software so it not the problem. please i really need h

  • How to iterate command Links

    Hi, My problem is as i want to show the commandlinks based on database records. Thus under each commandlink I have to show the sub command Links which sense like the sub categories. Any help regarding this. many thanks , vijaycanaan.