Simple Web Service fails

This one is clearly me doing something stupid.
in c:\inetpub\wwwroot I have these two files:
DropShip.cfc
<cfcomponent>
  <cffunction name="NewOrder" returnType="string" access="remote" output="false">
    <cfargument name="Version" type="string" required="yes">
    <cfreturn "Ack">
  </cffunction>
</cfcomponent>
TestShip.cfm
<cfinvoke
  webservice = "http://localhost/DropShip.cfc?WSDL"
  method = "NewOrder"
  timeout="10"
  returnVariable = "request.WebOrder">
  <cfinvokeargument name="Version" value="1.0" />
  </cfinvoke>
<cfoutput>[#request.WebOrder#]</cfoutput>
and the result I get back is:
Web service operation NewOrder with parameters {Version={1.0}} cannot be found.
If I remove the <cfargument> and <cfinvokeargument> it works.
So what silly thing am I doing wrong?  Pile on, I can take it!

Not sure where I found this but I think its designed to accomplish what you're after...
hth,
D.
<cfcomponent displayname="BaseWebService" output="false" hint="This handles core web service features.">
    <cffunction name="Init" access="public" returntype="any" output="false" hint="Returns an initialized web service instance.">
        <cfreturn THIS />
    </cffunction>
    <cffunction name="RebuildStubFile" access="remote" returntype="void" output="false" hint="Rebuilds the WSDL file at the given url.">
        <cfargument name="Password" type="string" required="true" />
        <cfif NOT Compare( ARGUMENTS.Password, "sweetlegs!" )>
            <cfset CreateObject
                        "java",
                        "coldfusion.server.ServiceFactory"
                    ).XmlRpcService.RefreshWebService
                            GetPageContext().GetRequest().GetRequestUrl().Append( "?wsdl" ).ToString()
            />
        </cfif>
        <cfreturn />
    </cffunction>
</cfcomponent>
AND then to use it ...
<cfcomponent displayname="Essence_WebServices" output="false" hint="Interactivity is handled exclusively in this CFC." extends="BaseWebService">
    <cffunction name="RebuildStubFile" access="remote" returntype="void" output="false" hint="Returns an initialized web service instance.">
        <CFSet super.RebuildStubFile('sweetlegs!') />
    </cffunction>
</CFComponent>
Message was edited by: GrandNagel

Similar Messages

  • Need Suggestion to build a simple web service demo

    I'm planning to build a demo using java packages JAX* for my team using my workstation and another standalone box.
    I got a Sun One Web Services Platform DVD from JavaOne, but it only support Win200 or XP, too bad our company still using Win NT SP6.
    I only need a very simple web service that will bring data from server DB. I knew I can download the JWSDP1.2, but there is no tutorial right now. And I have tried JWSDP1.1 but not really understand what it is doing(because only Hello world service is working). I need to do some modification to change the default server port from 80 to 81, and I need to modified localhost to [my-machine-name] so that the other machine can talk to the JWSDP server.
    My question is how can I build up a web service demo really easy and quick and what tool should I used, any suggestion will be appreciated! Thanks in advance!
    Henry

    1. Use XML Spy Enterprise edition editor.
    2. Goto www.xmethods.com, select service you want to create demo of.
    3. Get its WSDL url.
    4. In XML Spy SOAP menu there is a command 'create new soap request'. Press that, enter the WSDL url. You will get a SOAP request.
    5. Edit SOAP request parameters. Type parameters of your choice.
    6. Press 'send request to server'. You will get SOAP response. It will contain result from the requested method.
    7. Paste that response inside a JSP.
    8. Write a local method which will return same response (remote method's return value) that came from remote web service.
    9. Paste that method inside abovementioned JSP. Replace static response in that JSP with the response generated by local method. The method parameters will come from client's SOAP request. Parse SOAP request to get request parameters. (As it's your demo, you know the data types of the parameters).
    10. Host that JSP on any Servlet/JSP engine.
    That makes your Web Service.
    You can use any package like Aapche SOAP, AXIS or JAX-RPC to generate a SOAP client. Use the URL of JSP(step 10) as "endpoint".
    Note: Indside JSP make sure that there in no endline and carriage return character. Otherwise it won't be a valid SOAP response.
    Good luck.

  • SAP Sybase ESP - Error: Invalid URI at Example: Using a Simple Web Services (SOAP) Input Adapter

    Hello all,
    we need our help regarding the StockTrader example project that is delivered with SAP Sybase Event Stream Processor (Sybase ESP 5.1).
    we want to build a simple Web Service and follow the instructions as described in the Sybase Infocenter. We have attached a screenshot ("Sybase InfoCenter") that contains the described steps (as copying the URL always lead to a wrong page).
    We have problems with Step 10 ("Start the ESP project by running the start_project.bat or start_project.sh script."). We get the error message "Invalid URI" as you can see in screenshot "[error] Invalid Uri". Previously we started the "start_node.bat" (Step 9) - see also screenshot "[error] Invalid Uri".
    Like in steps 6 and 7 mentioned, we have changed the parameters "USER" and "PASSWORD" of the adapter_config.xml files and the parameters "ADAPTER_EXAMPLE_USERNAME"and "ADAPTER_EXAMPLE_PASSWORD" of the
    set_example_env.bat files. Here, we were a bit confused wether we should change these parameters in all those files as there are 4 adapter_config.xml and 4 set_example_env.bat files. Please refer to the attached screenshot ("changed files").
    Does anyone know why this error occurs and how to continue to complete the Web Service?
    Later we want to push data with this Web Service into a SAP HANA database table.
    We are thankful for any input and help.
    Regards, Andreas

    Hello Neal,
    thanks a lot for your help.
    The solution for us was to change the column names inside Sybase ESP Studio to the column names in StockTraderMappings.xml.
    After compiling and running the project we could see the data and were also able to push it to SAP HANA.
    This is the CCL Code that worked for us:
    CREATE SCHEMA tradesSchema (
        transaction_buyerId INTEGER,
        transaction_sellerId INTEGER,
        transaction_supervisorIds INTEGER,
        transaction_tradeTime LONG,
        transaction_trades_amount INTEGER,
        transaction_trades_price FLOAT,
        transaction_trades_symbol STRING
    CREATE INPUT STREAM tradesIn SCHEMA tradesSchema;
    CREATE OUTPUT STREAM tradesOut SCHEMA tradesSchema
         AS  SELECT * FROM tradesIn;
    * mapFilePath is currently ignored and must be set via the mappingFile configuration parameter
    * in the given adapter configuration file (configFilePath).
    ATTACH INPUT ADAPTER Web_Services_SOAP_Input_Adapter TYPE soapinput TO tradesIn PROPERTIES configFilePath =
    'C:/Sybase/ESP-5_1/adapters/webservices/examples/input/adapter_config.xml' ,
    mapFilePath = 'C:/Sybase/ESP-5_1/adapters/webservices/examples/input/stockTraderMappings.xml' ,
    jdkHome = 'C:/Software/Java/jdk' ,
    discoveryWsdl = 'http://localhost:8080/axis2/services/StockTraderService?wsdl' ,
    discoveryWorkingDir = 'C:/tmp/adapter/soap' ,
    discoveryServiceName = 'StockTraderService' ;
    Regards, Andreas and Maik

  • Another simple web service w/ database

    hi all, can anyone tell me where i can find another simple web services( w/ database) article just like http://java.sun.com/developer/technicalArticles/WebServices/getstartjaxrpc/
    Thanks

    hi all, can anyone tell me where i can find another
    simple web services( w/ database) article just like
    http://java.sun.com/developer/technicalArticles/WebSer
    vices/getstartjaxrpc/
    ThanksThis tutorial covers Oracle and Apache Axis:
    http://www.orindasoft.com/public/axisdemotwo.php4
    David Rolfe

  • Make simple web service

    Hi all, I'd like to make simple web service. I made a desktop (swing) application, which requires access to database. The database is not accessible from outside of the server.
    But I have web application on this server, so I can create a servlet (or jsp), which could operate as web service. Afterwards I can create a connection in my desktop application directed to this service page. The page downloads required data and grants them for my desktop application.
    But I don't know the way I could do it. Can you help me please? Thank you :-).

    Hi again, after several days, I'm back. It seems to be very good solution for me, but I have a problem. I can't catch it :-(. I've read the manual pages maybe twenty-times and I've looked for another tutorials and so on. Nothing helped. I don't know, how I can run it :-(. I create following:
    My web.xml:<web-app version="2.4"
               xmlns="http://java.sun.com/xml/ns/j2ee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
               http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
         <servlet>
              <servlet-name>EOTService</servlet-name>
              <servlet-class>services.EOTService</servlet-class>
              <init-param>
                   <param-name>enabledForExtensions</param-name>
                   <param-value>true</param-value>
                   <description>Sets, whether the servlet supports vendor extensions for XML-RPC.</description>
              </init-param>
         </servlet>
         <servlet-mapping>
              <servlet-name>EOTService</servlet-name>
              <url-pattern>/service</url-pattern>
         </servlet-mapping>
    </web-app>In package services I have two .java files. The first one, Calculator.java:package services;
    public class Calculator {
         public int add(int a, int b) {
              return a + b;
         public int sub(int a, int b) {
              return a - b;
    }and the second one, EOTService.java:package services;
    import org.apache.xmlrpc.*;
    import org.apache.xmlrpc.common.*;
    import org.apache.xmlrpc.server.*;
    import org.apache.xmlrpc.webserver.*;
    public class EOTService extends XmlRpcServlet {
         private boolean isAuthenticated(String pUserName, String pPassword) {
              return pUserName.equals("username") && pPassword.equals("password");
         protected XmlRpcHandlerMapping newXmlRpcHandlerMapping() throws XmlRpcException {
              PropertyHandlerMapping mapping = (PropertyHandlerMapping) super.newXmlRpcHandlerMapping();
              AbstractReflectiveHandlerMapping.AuthenticationHandler handler =
                   new AbstractReflectiveHandlerMapping.AuthenticationHandler() {
                        public boolean isAuthorized(XmlRpcRequest pRequest) {
                             XmlRpcHttpRequestConfig config = (XmlRpcHttpRequestConfig) pRequest.getConfig();
                             return isAuthenticated(config.getBasicUserName(), config.getBasicPassword());
              mapping.setAuthenticationHandler(handler);
              try {
                   mapping.addHandler("Calculator", Class.forName("services.Calculator"));
              } catch (ClassNotFoundException e) {
                   e.printStackTrace();
              return mapping;
    }In the myapp/WEB-INF/lib I have these files:xmlrpc-common-3.1.3.jar
    xmlrpc-server-3.1.3.jarAnd now, I'd like to connect to this servlet and download data. So I have another application and in main method of the application I call this:public static void main(String[] args) {
    try {
                XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
                config.setServerURL(new URL("http://127.0.0.1:8080/service"));
                XmlRpcClient client = new XmlRpcClient();
                client.setConfig(config);
                Object[] params = new Object[]{new Integer(33), new Integer(9)};
                Integer result = (Integer)client.execute("Calculator.add", params);
                System.out.println("33 + 9 = " + result);
            } catch (java.net.MalformedURLException e) {
                System.out.println(e.getMessage());
            } catch (org.apache.xmlrpc.XmlRpcException e) {
                e.printStackTrace(System.out);
    }But following exception is thrownException in thread "main" java.lang.NoClassDefFoundError: org/apache/ws/commons/serialize/DOMSerializer
            at org.apache.xmlrpc.serializer.NodeSerializer.<clinit>(NodeSerializer.java:30)
            at org.apache.xmlrpc.common.TypeFactoryImpl.<clinit>(TypeFactoryImpl.java:88)
            at org.apache.xmlrpc.common.XmlRpcController.<init>(XmlRpcController.java:31)
            at org.apache.xmlrpc.client.XmlRpcClient.<init>(XmlRpcClient.java:51)
            at main.Main.main(Main.java:51)
    Caused by: java.lang.ClassNotFoundException: org.apache.ws.commons.serialize.DOMSerializer
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 5 moreI'm trying to implement it for five days and my failure is very stressful. Help me please... please :-[.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Weblogic invoking web service failed due to 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 by WebLogic admin console and changed those values, but I still receive same errors.
    Regards,
    Fujio Sonehara

    Hey Eason,
    As I had previously mentioned, I have checked the FE server certs and have mentioned the signing algorithm it used to sign the certs, which was sha1DSA and not sha1RSA, I even checked my CA list of issued certs and have found all certs are signed the same.
    Signature algorithm: sha1DSA
    Signature Hash Algorithm: sha1
    Public Key:  RSA (1024 bit)
    I could run request and reinstall all day long it will still get the same certs signed with the algo..
    Doing some research I attempted to see if I could change the signing cert for a specific cert template that was being used to issue the Lync FE certs... however seems that from according to
    this, that I'd have to completely rebuild my CA before I'd be able to request and issue a cert with the proper signing algorithm?!
    This
    says its possible but not supported, what do I do in this situation? Is my only option to rebuild teh entire CA and cert infrastructure?
    I noticed my CSP is set to Microsoft Base DSS Cryptographic Provider, and under the CSP folder there is no "CNGHashAlgorithm" key so I'm using a "Next Gen CSP" apparently? Is this CSP good enough to support Lync...Straight up where is
    the Lync documentation on the CA setup requirements??
    This google link doesn't tell you how you should setup a CA for Lync, what settings need to set etc..

  • GetAndPublish web service failed due to an internal error

    Hello all,
    Been a little while, To start off we have no IP phones connected to Lync. We have a completely separate PBX and VoIP system.
    We have one FE server internally used to have internal users use Lync 2013 as a IM interface and Video conference. All users are running Lync 2013 with all the latest updates. Our Lync 2013 FE server is running on Windows 2008 R2 with all the latest updates.
    v I noticed in our event log the follow error v
    GetAndPublish web service failed due to an internal error. Request Details - Entity: [[email protected]], Device Id: [9A1A1E15-865F-5376-88CD-4384205012F9], Authenticated User: [sip:[email protected]]. Additional Context: [CA_Failure: InternalError] Cause:
    This is an unexpected failure Resolution: Re-start the web server. If you see this error continuously, examine the server traces and contact product support.
    I have googled and only came across technet forums that state checking certificate related issues.. or based around the IP Phones not authenticating. such as
    here, however this guy noted a certain algorithm required by the CA to work properly "RSASSA-PSS algorythm instead of RSAsha1". Now I'm not exactly sure how to check up on this, and I also don't get why everything seems to work fine but I keep
    getting these events populating.
    I also ran "Test-csclientauth" cmdlet on our FE server and came up with a failure much like on the link I provided above.
    Am I to assume these events are being populated because my Lync deployment was set up to use certs techincally not supported by Lync?

    Hey Eason,
    As I had previously mentioned, I have checked the FE server certs and have mentioned the signing algorithm it used to sign the certs, which was sha1DSA and not sha1RSA, I even checked my CA list of issued certs and have found all certs are signed the same.
    Signature algorithm: sha1DSA
    Signature Hash Algorithm: sha1
    Public Key:  RSA (1024 bit)
    I could run request and reinstall all day long it will still get the same certs signed with the algo..
    Doing some research I attempted to see if I could change the signing cert for a specific cert template that was being used to issue the Lync FE certs... however seems that from according to
    this, that I'd have to completely rebuild my CA before I'd be able to request and issue a cert with the proper signing algorithm?!
    This
    says its possible but not supported, what do I do in this situation? Is my only option to rebuild teh entire CA and cert infrastructure?
    I noticed my CSP is set to Microsoft Base DSS Cryptographic Provider, and under the CSP folder there is no "CNGHashAlgorithm" key so I'm using a "Next Gen CSP" apparently? Is this CSP good enough to support Lync...Straight up where is
    the Lync documentation on the CA setup requirements??
    This google link doesn't tell you how you should setup a CA for Lync, what settings need to set etc..

  • BPEL Process Manager says that My Simple Web Service returns null !

    Hi every body,
    I am deploying a process which invokes a simple web service (TheaterWS) running on Tomcat.This service simply accepts a string input and returns it concatenated with other string . I tested it with a client that I made with JDeveloper, every thing is O.K, But after deploying the process to a BPEL server, I got the following Assign Activity error on BPEL Console:
    ( Error in <assign> expression: <from>-Value is empty in row "43".The part "return" is Null, as shown in the following snippet:
    <Invoke_Theater_getBooked_OUT>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="return">null</part>
    </Invoke_Theater_getBooked_OUT>
    Here is my files:
    The TheaterBP.bpel
    <process name="TheaterBP" targetNamespace="http://xmlns.oracle.com/TheaterBP" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://139.25.6.39:8080/axis/TheaterWS.jws" xmlns:client="http://xmlns.oracle.com/TheaterBP" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <partnerLinks>
    <partnerLink name="client" partnerLinkType="client:TheaterBP" myRole="TheaterBPProvider" partnerRole="TheaterBPRequester"/>
    <partnerLink name="TheaterPartnerLink" partnerRole="TheaterWS_Role" partnerLinkType="ns2:TheaterWS_PL"/>
    </partnerLinks>
    <variables>
    <variable name="inputVariable" messageType="client:TheaterBPRequestMessage"/>
    <variable name="outputVariable" messageType="client:TheaterBPResponseMessage"/>
    <variable name="Invoke_Theater_getBooked_IN" messageType="ns2:getBookedRequest"/>
    <variable name="Invoke_Theater_getBooked_OUT" messageType="ns2:getBookedResponse"/>
    </variables>
    <sequence name="main">
    <receive name="receiveInput" partnerLink="client" portType="client:TheaterBP" operation="initiate" variable="inputVariable" createInstance="yes"/>
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload" query="/client:TheaterBPProcessRequest/client:input"/>
    <to variable="Invoke_Theater_getBooked_IN" part="a"/>
    </copy>
    </assign>
    <invoke name="Invoke_Theater" partnerLink="TheaterPartnerLink" portType="ns2:TheaterWS" operation="getBooked" inputVariable="Invoke_Theater_getBooked_IN" outputVariable="Invoke_Theater_getBooked_OUT"/>
    <assign name="Assign_2">
    <copy>
    <from variable="Invoke_Theater_getBooked_OUT" part="return"/>
    <to variable="outputVariable" part="payload" query="/client:TheaterBPProcessResponse/client:result"/>
    </copy>
    </assign>
    <invoke name="callbackClient" partnerLink="client" portType="client:TheaterBPCallback" operation="onResult" inputVariable="outputVariable"/>
    </sequence>
    </process>
    </definitions>
    The TheaterPartenerLink1.wsdl
    targetNamespace="http://139.25.6.39:8080/axis/TheaterWS.jws"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:intf="http://139.25.6.39:8080/axis/TheaterWS.jws"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    >
    <import namespace="http://139.25.6.39:8080/axis/TheaterWS.jws" location="http://139.25.6.39:8080/axis/TheaterWS.jws?wsdl"/>
    <plnk:partnerLinkType name="TheaterWS_PL">
    <plnk:role name="TheaterWS_Role">
    <plnk:portType name="intf:TheaterWS"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    and here is the TheaterWS.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://139.25.6.39:8080/axis/TheaterWS.jws" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:impl="http://139.25.6.39:8080/axis/TheaterWS.jws-impl" xmlns:intf="http://139.25.6.39:8080/axis/TheaterWS.jws" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:message name="getBookedResponse">
    <wsdl:part name="return" type="xsd:string"/>
    </wsdl:message>
    <wsdl:message name="getBookedRequest">
    <wsdl:part name="a" type="xsd:string"/>
    </wsdl:message>
    <wsdl:portType name="TheaterWS">
    <wsdl:operation name="getBooked" parameterOrder="a">
    <wsdl:input message="intf:getBookedRequest"/>
    <wsdl:output message="intf:getBookedResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="TheaterWSSoapBinding" type="intf:TheaterWS">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getBooked">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input>
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://139.25.6.39:8080/axis/TheaterWS.jws" use="encoded"/>
    </wsdl:input>
    <wsdl:output>
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://139.25.6.39:8080/axis/TheaterWS.jws" use="encoded"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="TheaterWSService">
    <wsdl:port binding="intf:TheaterWSSoapBinding" name="TheaterWS">
    <wsdlsoap:address location="http://139.25.6.39:8080/axis/TheaterWS.jws"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    I apprecitae any hints,

    Hi every body,
    I am deploying a process which invokes a simple web service (TheaterWS) running on Tomcat.This service simply accepts a string input and returns it concatenated with other string . I tested it with a client that I made with JDeveloper, every thing is O.K, But after deploying the process to a BPEL server, I got the following Assign Activity error on BPEL Console:
    ( Error in <assign> expression: <from>-Value is empty in row "43".The part "return" is Null, as shown in the following snippet:
    <Invoke_Theater_getBooked_OUT>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="return">null</part>
    </Invoke_Theater_getBooked_OUT>
    Here is my files:
    The TheaterBP.bpel
    <process name="TheaterBP" targetNamespace="http://xmlns.oracle.com/TheaterBP" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://139.25.6.39:8080/axis/TheaterWS.jws" xmlns:client="http://xmlns.oracle.com/TheaterBP" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <partnerLinks>
    <partnerLink name="client" partnerLinkType="client:TheaterBP" myRole="TheaterBPProvider" partnerRole="TheaterBPRequester"/>
    <partnerLink name="TheaterPartnerLink" partnerRole="TheaterWS_Role" partnerLinkType="ns2:TheaterWS_PL"/>
    </partnerLinks>
    <variables>
    <variable name="inputVariable" messageType="client:TheaterBPRequestMessage"/>
    <variable name="outputVariable" messageType="client:TheaterBPResponseMessage"/>
    <variable name="Invoke_Theater_getBooked_IN" messageType="ns2:getBookedRequest"/>
    <variable name="Invoke_Theater_getBooked_OUT" messageType="ns2:getBookedResponse"/>
    </variables>
    <sequence name="main">
    <receive name="receiveInput" partnerLink="client" portType="client:TheaterBP" operation="initiate" variable="inputVariable" createInstance="yes"/>
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload" query="/client:TheaterBPProcessRequest/client:input"/>
    <to variable="Invoke_Theater_getBooked_IN" part="a"/>
    </copy>
    </assign>
    <invoke name="Invoke_Theater" partnerLink="TheaterPartnerLink" portType="ns2:TheaterWS" operation="getBooked" inputVariable="Invoke_Theater_getBooked_IN" outputVariable="Invoke_Theater_getBooked_OUT"/>
    <assign name="Assign_2">
    <copy>
    <from variable="Invoke_Theater_getBooked_OUT" part="return"/>
    <to variable="outputVariable" part="payload" query="/client:TheaterBPProcessResponse/client:result"/>
    </copy>
    </assign>
    <invoke name="callbackClient" partnerLink="client" portType="client:TheaterBPCallback" operation="onResult" inputVariable="outputVariable"/>
    </sequence>
    </process>
    </definitions>
    The TheaterPartenerLink1.wsdl
    targetNamespace="http://139.25.6.39:8080/axis/TheaterWS.jws"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:intf="http://139.25.6.39:8080/axis/TheaterWS.jws"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    >
    <import namespace="http://139.25.6.39:8080/axis/TheaterWS.jws" location="http://139.25.6.39:8080/axis/TheaterWS.jws?wsdl"/>
    <plnk:partnerLinkType name="TheaterWS_PL">
    <plnk:role name="TheaterWS_Role">
    <plnk:portType name="intf:TheaterWS"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    and here is the TheaterWS.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://139.25.6.39:8080/axis/TheaterWS.jws" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:impl="http://139.25.6.39:8080/axis/TheaterWS.jws-impl" xmlns:intf="http://139.25.6.39:8080/axis/TheaterWS.jws" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:message name="getBookedResponse">
    <wsdl:part name="return" type="xsd:string"/>
    </wsdl:message>
    <wsdl:message name="getBookedRequest">
    <wsdl:part name="a" type="xsd:string"/>
    </wsdl:message>
    <wsdl:portType name="TheaterWS">
    <wsdl:operation name="getBooked" parameterOrder="a">
    <wsdl:input message="intf:getBookedRequest"/>
    <wsdl:output message="intf:getBookedResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="TheaterWSSoapBinding" type="intf:TheaterWS">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getBooked">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input>
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://139.25.6.39:8080/axis/TheaterWS.jws" use="encoded"/>
    </wsdl:input>
    <wsdl:output>
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://139.25.6.39:8080/axis/TheaterWS.jws" use="encoded"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="TheaterWSService">
    <wsdl:port binding="intf:TheaterWSSoapBinding" name="TheaterWS">
    <wsdlsoap:address location="http://139.25.6.39:8080/axis/TheaterWS.jws"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    I apprecitae any hints,

  • Creating simple Web Services from Plain Old Java Objects (PoJo)

    This post is with reference to a sun web page at URL - http://developers.sun.com/appserver/reference/techart/ws_mgmt.html
    It is a crisply written tutorial on creating a simple Java class and deploy the class as a JAX-WS 2.0 Web service.
    Requires -
    a) Sun Application Server - I got App Server Platform Edition 9.0_01
    b) Also requires Java_Home to JDK 1.5.0 - this was something i did even though my App Server i believe is using jdk 1.6.
    [The reason i know that is because when i removed jdk 1.6. directory from my C:\Java location, my app server asadmin commands would not be found. While i dont remember configuring the App Server to point to JDK 1.6. specifically, i am assuming the app server version i downloaded and installed auto installs it and uses it]
    I wrote up the class as described in the tutorial.
    Initially i had difficulty compiling the class, and it would error out as being unable to find the javax.jws package.
    I researched the problem a little and included the jaxws-tools.jar in the classpath and that error went away.
    According to the tutorial the presence of the @WebService annotation will tell the App Server to process it as such and also auto deploy it to the App Server.
    However while the class file is created, the autodeploy part fails completely.
    I have the entries in server.log corresponding to this javac execution stored in a separate file. Didnt know how best to attach it here.
    Please help.
    Best regards,

    Just inline the appropriate pieces of the server log.

  • Problem with simple Web Service

    Hi,
    I'm new in WebLogic . I created some jee projects (usually simple) before, but only in glassfish or tomcat. I read simple netbeans tutorial http://netbeans.org/kb/docs/websvc/jax-ws.html , but when i run this project in WebLogic i had the error:
    java.lang.NoClassDefFoundError: Could not initialize class weblogic.wsee.jaxws.spi.WLSProvider
    - WebLogic 12c, Java 7.0_15
    the full stack:
    org.eclipse.core.runtime.CoreException: Module named '_auto_generated_ear_' failed to deploy. See Error Log view for more detail.
         at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.deployAutoGenerateEarApplication(WlsJ2EEDeploymentHelper.java:807)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishWeblogicModules(WeblogicServerBehaviour.java:1438)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:898)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:686)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:539)
         at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
         at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3153)
         at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    Contains: Module named '_auto_generated_ear_' failed to start.
    Contains: weblogic.application.ModuleException: [HTTP:101216]Servlet: "org.bonus.GetStockReportImpl" failed to preload on startup in Web application: "BonusWS".
    java.lang.NoClassDefFoundError: Could not initialize class weblogic.wsee.jaxws.spi.WLSProvider
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.getEndpoint(JAXWSDeployedServlet.java:135)
         at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:139)
         at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:68)
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:54)
         at javax.servlet.GenericServlet.init(GenericServlet.java:240)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:299)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
         at weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:94)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:82)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:74)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:60)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:34)
         at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:624)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:565)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1874)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1848)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1738)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2740)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1704)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:781)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:212)
         at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:111)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:582)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:148)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:114)
         at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:335)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail.
         at oracle.eclipse.tools.weblogic.server.internal.DeploymentProgressListener.watch(DeploymentProgressListener.java:190)
         at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.startModule(WlsJ2EEDeploymentHelper.java:1126)
         at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.deployAutoGenerateEarApplication(WlsJ2EEDeploymentHelper.java:798)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishWeblogicModules(WeblogicServerBehaviour.java:1438)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:898)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:686)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:539)
         at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
         at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3153)
         at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    Caused by: weblogic.application.ModuleException: [HTTP:101216]Servlet: "org.bonus.GetStockReportImpl" failed to preload on startup in Web application: "BonusWS".
    java.lang.NoClassDefFoundError: Could not initialize class weblogic.wsee.jaxws.spi.WLSProvider
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.getEndpoint(JAXWSDeployedServlet.java:135)
         at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:139)
         at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:68)
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:54)
         at javax.servlet.GenericServlet.init(GenericServlet.java:240)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:299)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
         at weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:94)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:82)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:74)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:60)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:34)
         at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:624)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:565)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1874)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1848)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1738)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2740)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1704)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:781)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:212)
         at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:111)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:582)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:148)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:114)
         at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:335)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.getEndpoint(JAXWSDeployedServlet.java:135)
         at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:139)
         at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:68)
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:54)
         at javax.servlet.GenericServlet.init(GenericServlet.java:240)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:299)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
         at weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:94)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:82)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:74)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:60)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:34)
         at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:624)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:565)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1874)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1848)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1738)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2740)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1704)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:781)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:212)
         at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:111)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:582)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:148)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:114)
         at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:335)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1706)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:781)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:212)
         at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:111)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:582)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:148)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:114)
         at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:335)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class weblogic.wsee.jaxws.spi.WLSProvider
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.getEndpoint(JAXWSDeployedServlet.java:135)
         at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:139)
         at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:68)
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:54)
         at javax.servlet.GenericServlet.init(GenericServlet.java:240)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:299)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
         at weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:94)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:82)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:74)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:60)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:34)
         at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:624)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:565)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1874)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1848)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1738)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2740)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1704)
    Any ideas?

    Do I have to add wseeclient.jar to classpath when i create web service ? It is not a client appplication.

  • PL/SQL  Web Service fails when deployed to WebLogic server

    I have a web service generated via JDeveloper from a PL/SQL package. It runs fine both when tested in JDeveloper and when the WAR file is manually deployed to the Integrated WebLogic Server. However, when the WAR file is deployed to our actual WebLogic server, it fails. Other existing web services that were not generated with the JDeveloper wizard work correctly. I am having trouble finding any references to this type of issue to solve it. Are there any ideas what might be causing the WSDL to fail?
    References:
    * JDeveloper 11.1.1.6.
    * No proxies are involved.
    * The PLSQL package is a basic function that returns varchar2 input fed in by one parameter:
    create or replace package body pkg_ws_test as
    function test_me (p_anything_in varchar2)
    return varchar2 is
    begin
    return p_anything_in;
    end test_me;
    end pkg_ws_test;
    * Top of error stack is as follows:
    oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: WSDLException: faultCode=OTHER_ERROR: Failed to read WSDL from http://svr:8892/wsTest2-getSame-context-root/TestMePort?wsdl: HTTP connection error code is 500 at oracle.sysman.emSDK.webservices.wsdlparser.ParsedWSDLFactoryImpl.getParsedWSDL(ParsedWSDLFactoryImpl.java:157) at oracle.sysman.emSDK.webservices.wsdlparser.ParsedWSDLFactoryImpl.getParsedWSDL(ParsedWSDLFactoryImpl.java:87) at oracle.sysman.emas.model.wsmgt.WSTestModel.init(WSTestModel.java:325) at
    ...

    Hi,
    The below error trace you've provided doesn't confirm that Weblogic server has thrown the error.
    oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: WSDLException: faultCode=OTHER_ERROR: Failed to read WSDL from http://svr:8892/wsTest2-getSame-context-root/TestMePort?wsdl: HTTP connection error code is 500 at oracle.sysman.emSDK.webservices.wsdlparser.ParsedWSDLFactoryImpl.getParsedWSDL(ParsedWSDLFactoryImpl.java:157) at oracle.sysman.emSDK.webservices.wsdlparser.ParsedWSDLFactoryImpl.getParsedWSDL(ParsedWSDLFactoryImpl.java:87) at oracle.sysman.emas.model.wsmgt.WSTestModel.init(WSTestModel.java:325) at
    Please paste complete stacktrace of the error to check and also include the caused by section in the error.
    Thanks,
    Vijaya

  • Multiple calls to web service fails

    I designed the following program to stress test a web service I wrote. The problem is, if I attempt to call the web service more than twice, all subsequent calls fail with the following exception:
    spawned number 1
    Thread number 1 104
    spawned number 2
    Thread number 2 104
    spawned number 3
    System.Net.WebException: The operation has timed out
    at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
    at System.Net.HttpWebRequest.GetRequestStream()
    at Slam.Work.WebCall(Int32 i) in c:\Users\AM\Documents\Visual Studio 2013\Proje
    cts\Slam\Slam\Program.cs:line 75
    Exception thrown for 3
    System.ArgumentNullException: Value cannot be null.
    Parameter name: destination
    at System.IO.Stream.CopyTo(Stream destination)
    at Slam.Work.WebCall(Int32 i) in c:\Users\AM\Documents\Visual Studio 2013\Proje
    cts\Slam\Slam\Program.cs:line 81
    Press any key to continue . . .
    Here is the program:
    using System;
    using System.Text;
    using System.Threading;
    using System.Net;
    using System.IO;
    namespace Slam
    class Program
    static void Main(string[] args)
    Work w = new Work();
    for (int x = 1; x < 4; x++)
    int y = x;
    w.WebCall(y);
    Thread.Sleep(1000);
    public class Work
    private string username = "*****";
    private string password = "*****";
    private string url = "https://192.168.1.23:9092/Api/WebI";
    public void WebCall(int i)
    Console.WriteLine("spawned number " + i);
    try
    var credentials = string.Join(":", username, password);
    var base64String = Convert.ToBase64String(Encoding.UTF8.GetBytes(credentials));
    var request = WebRequest.Create(url);
    request.Headers.Add(HttpRequestHeader.Authorization, string.Join(" ", "Basic", base64String));
    request.Method = WebRequestMethods.Http.Post;
    string fileName = @"c:\work\sample.txt";
    System.IO.Stream requestStream = null;
    using (var fileStream = File.OpenRead(fileName))
    request.ContentLength = fileStream.Length;
    ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;
    try
    requestStream = request.GetRequestStream();
    catch (Exception e)
    Console.WriteLine(e);
    fileStream.CopyTo(requestStream);
    var response = request.GetResponse();
    Console.WriteLine("Thread number {0} {1}", i, response.ContentLength);
    fileStream.Close();
    requestStream.Close();
    catch (Exception g)
    Console.WriteLine("Exception thrown for " + i);
    Console.WriteLine(g);
    The program which is failing is the client not the service. Can someone please provide me with some direction as to why this always fails on the third call.

    Hi Steven,
    According to the second exception, the problem may be that the requestStream of the webservice call is null when the 3rd time the WebRequest send request to the webservice. Please debug the code and verify if it's this case. And it's better to tell us more
    about the content of the text file and what the webservice does when you send request to it.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Creating a Simple Web Service and Client with JAX-WS

    I downloaded javaeetutorial5 tutorial from this URL.
    https://sdlc1a.sun.com/ECom/EComActionServlet;jsessionid=5874F5CFDFC12A3F5217CEA1ED76E76C
    And followed the steps to create the web service as mentioned here.
    http://java.sun.com/javaee/5/docs/tutorial/doc/JAXWS3.html#wp79980
    But I couldn't make it to run using my netbeans IDE 5.5.
    Its giving a deployment error.
    init:
    deps-module-jar:
    deps-ear-jar:
    deps-jar:
    library-inclusion-in-archive:
    library-inclusion-in-manifest:
    compile:
    compile-jsps:
    do-dist:
    dist:
    In-place deployment at D:\NetBeans\javaeetutorial5\examples\jaxws\helloservice\build\web
    Start registering the project's server resources
    Finished registering server resources
    moduleID=helloservice
    deployment started : 0%
    Deploying application in domain failed; com.sun.tools.apt.Main.process(Lcom/sun/mirror/apt/AnnotationProcessorFactory;[Ljava/lang/String;)I
    D:\NetBeans\javaeetutorial5\examples\jaxws\helloservice\nbproject\build-impl.xml:440: Deployment error:
    The module has not been deployed.
    See the server log for details.
    BUILD FAILED (total time: 3 seconds)Is it a bug in netbeans 5.5 because i made this as it mentioned in the tutorial.

    I am getting the same error as describes in this thread.
    http://forum.java.sun.com/thread.jspa?threadID=715624&messageID=4152590
    How can i solve this error.
    Message was edited by:
    Ajaxrand

  • Simple web service authentication question

    I'm using the application server included with Sun ONE Identity Server 6.1 (and Apache Axis) to deploy a very simple sample web service. Accessing it from a web browser works fine. (After entering the url to my service, I'm redirected to the authentication page. After authenticating, my service is executed as expected.)
    The problem comes when I attempt to execute this same web service from a Java application (using Apache Axis). I authenticate programmatically and have a valid SSOToken. How do I pass my authentication information along to the IS server when invoking the web service programmatically? Can I do this somehow with the SSOToken I have? Every time I invoke the service programmatically, a "(302)Moved Temporarily" HTML response is received.
    Thanks for your help.
    David

    This solved the problem for me (using Axis):
         call.setProperty(org.apache.axis.transport.http.HTTPConstants.HEADER_COOKIE,
                          "iPlanetDirectoryPro=" + token.getTokenID().toString());
         call.setMaintainSession(true);Hope this helps.

  • Session enabled RFC Web Service Fails & WSDL has enablesession=false

    Please help  Thanks in Advance
    A stateful Webservice with 2 RFCs, consumed by a .NET application fails and the cause seems to be because of statelessness.
    The call to 1st RFC succeeds and the call to the 2nd RFC fails with the below error message:
    An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally,
    nor declared in a RAISING clause.Dereferencing of the NULL reference"
    Question:
    1- Even though the "Session-Oriented Communication" is checked, the WSDL has EnableSession as false. Is there any special step to make it true?
    2- Even though the SOA Manager says that the Session is enabled and SessionMode is Http Cookie, the HTTPFiddler doesn't show any cookie in the .NET side.
    3- Are Web Service enabled HRXSS RFCs capable of performing Session Oriented Communication?
    Eg. Can the RFCs HrxssPerInitPernr and HrxssPerReadP0002Us be called in a sequence?
    service ws = new service();
                ws.Credentials = new System.Net.NetworkCredential("abcd", "abcd");
                System.Net.CookieContainer cookie1 = new System.Net.CookieContainer();
                ws.CookieContainer = cookie1;
                //BELOW CALL SUCCEEDS
               HrxssPerInitPernrResponse response = ws.HrxssPerInitPernr(new HrxssPerInitPernr()
    { Infty = "0002", Pernr = "52222068", Userdate="2009-01-01" });
                HrxssPerReadP0002Us read = new HrxssPerReadP0002Us() { Infty = "0002"  };
              // BELOW CALL FAILS
                HrxssPerReadP0002UsResponse readResponse = ws. HrxssPerReadP0002Us (read);
                HcmtBspPaUsR0002 [] records = readResponse.Records;
    EXCEPTION
    System.Web.Services.Protocols.SoapException was unhandled
      Message="CX_SY_REF_IS_INITIAL:Exception CX_SOAP_ROOT occurred (program: CL_SOAP_RUNTIME_ROOTCP,
    include:CL_SOAP_RUNTIME_ROOT CM004, line: 110)
    An exception with the type CX_SY_REF_IS_INITIAL occurred,
    but was neither handled locally, nor declared in a RAISING clause.Dereferencing of the NULL reference"
      Source="System.Web.Services"
      Actor=""  Lang="en"  Node=""  Role=""   StackTrace:
           at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke  at HrxssPerReadP0002Us
    Edited by: Tony TB on Jul 2, 2009 9:56 AM

    to get this working you need to enable some services in transaction SICF
    to know a complete list of all services to be enabled check oss note number 517484
    particularly these nodes should be active
    /default_host/sap/bc/soap/wsdl and
    /default_host/sap/bc/soap/wsdl11
    (to get the error thrown by the server instead of page cannot be found, in your browser go to tools->internet options->advanced and uncheck the check box "show friendly error messages" and run the wsdl button again)
    Regards
    Raja

Maybe you are looking for

  • Can I backup multiple users on one mac with Personal Backup X5

    Thinking of getting Personal Backup X5 by Intego. I have 4 users on my one mac and need to be able to back up each user's home directory. Does anyone have experience with this app? Can I do this? What do you think if PB X5? Thanks

  • The contents of Spaces disappears after long inactivity!

    OS X 10.7.2, 10 virtual spaces with assigned apps accessed as Ctrl1-Ctrl9. Everything's definitely fine as long as I keep switching between them. If spaces are not accessed fro a certain (? maybe 30 minutes, maybe 2 hours - unknown), their contents..

  • Credit Memo & Downpayment

    Hi! I'm making the downpayment to vendor, but the system is treating the downpayment document as credit memo. due to this , system is not selecting this document in dunning run. as this document is without the refernce of invoice number. Any setting,

  • How to change the UI of Community Links portlet

    In WCI 10gR3, how could I change the UI of the Community Links portlet? Basically, I do not want the community icons next to my to-be-linked Community Pages list; All I want is just a heading like Quick Links and the links below.

  • Unsupported Content-Type: text/html in JAX-WS

    Hi All, I was trying to add new WS client proxy using jdeveloper but it gives me some error: Exception in thread "main" com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html Supported ones are: [text/xml] at com.sun.xml