Need clarifications on NB Web services

Hi All,
We are trying to utilize the web services exposed by the CPO 3.0. However we are stuck with following topics/questions and not able to move forward. The intention of this, is basically to trigger/observe/stop/review activities from a custom portal similar to Cisco Prime catalog. We have referred NB Web Services guide, but it doesn't explain in detail
Process Level - How to accomplish a custom web service (Our definition of custom is a feature offered as part of CPO but not available as a web service) along with the guidelines of parameterizing techniques which is not been elaborated in the NB_Web Services Guide (available online along with WSDL).Example - Guidelines to create a new web service Process by name startUpdateDatabase(parameter1, parameter2,…... parameter n)
Instance Level - Development documentation of web service which can give the exact node status of the current instance runningAnticipated return statement similar to currentExecutionNode - (node n) where n is the node ID/name of the requested instance
Tasks Level - Lifecycle documentation associated to tasksExample - ItilStatus(ItilTaskStatus) - Status of Task (New, assigned, pending, InProgress ….. Etc.,) - Understanding of the complete lifecycle but not just parameters. How to obtain?
Sample code to perform tasks like InputTask and ApprovalTask which involves user effort (say, approving an action) using web services and when the task is performed by an user, the status of the flow of information changes from assigned to completed.
Are there any Web Services development guide with examples(Apart from NB Web Services Guide)?
Any help would be much appreciated . 
Thank you!
Regards,
Eswar

ok... I'll give it a whirl.
As a side note, you should be able to use something like SOAP UI if you are trying to easily form the calls. You can use SOAP UI and connect to whatever WSDL in the NBWS you want and it will give you all the methods and you can create sample calls and try them out. This is shown quite a bit in my blogs. For web service work, my blogs are a great place to start.
Process Level - I believe what you are asking here is how to get something to start via NBWS? In 3.0 you must add the trigger "Started by Web Service". There you can configure the exposed name/method for that web service. After saving your process you must refresh/bounce the web services and then your process will show up in the process WSDL (by default: http://host:port/WS/Process?WSDL). You can then make calls to it.
I believe you are asking how to find the status of a current process? Or are you asking about the exact status of a CPO node in the cluster? If it's the process, you can use the process instance WSDL @ http://hostname:port/WS/ProcessInstance?WSDL. If you are asking about finding the status of a CPO node, then you can query the DB for that or you could just use the windows activity "Query Service" and query for the CPO Service to be running. You would have to write this yourself but it's quite easy. (in fact I probably have a blog showing it somewhere) There is *NO* webservice to give back the status of a CPO node's service
Not sure what you are asking about tasks. You can use the NBWS for them in http://host:port/WS/Task?WSDL . The lifecycle of a tasks should meet that of the ITIL model as that is what CPO is patterned after. We do not offer training on this lifecycle, that would be something you would fine with ITIL training. Many of the customers (who are not ITIL trained) only use a couple of status and go with it because it means something to them. IE. Some only used CLOSED to close out tasks, but some used RESOLVED. It's really up to end user determination.
I would create the task via web service and then update it with the proper information. Again, like I mentioned above, if you need to see samples or the layout of one, then use SOAP UI. It will give you a template layout and then you can fill in the required information. We do not have a sample of every single web call we produce. (since SOAP UI does such a great job) You can also use the WEB SERVICE EXECUTE activity inside of CPO and this gives you inputs to do it directly (although does not give you the soap message like SOAP UI does)
No. The NBWS guide is it. Use SOAP UI as per above. I have done a numerous amount of blogs that have some information in them and have some examples, but I have not done everything because the use case has not crossed my desk.
If you have more pointed use case and what exactly you are trying to do we can go into further detail maybe, but the above is a good start.
--Shaun

Similar Messages

  • Help needed with flash and web service call

    Hi all,
    I need some help with web services and flash. I'm very new to flash, so please have that in the back of your mind when reading this :-)
    I've got a .swf file, and I would like to display a number received from a web service (using adobe flash professional cs5). Ive added the web service and provided the WSDL, but when i try to "Add Method Call", nothing happens. Why? What am I doing wrong?
    Hope someone can help

    start with the button that causes the text to be displayed.  find what it does (which may not be easy because most templates are coded by novice or intermediate level coders) and follow that trail to the text.  (note:  the text may be in a txt or xml file that's loaded.)
    to have a button release open a file, use:
    yourbtn.onRelease=function(){
    getURL("http://www.adobe.com");

  • Need to Interface through web services

    I am new to web services.
    I am working on interfacing oracle database 10g with web services.
    The host company has already API's which are SOAP based
    i need to call these web services through PL/SQL
    How to start, how to setup the database for that?
    anyhelp would be appreciated.
    thanks

    You can download a utility called: DEMOSOAP.SQL here:
    http://www.orafaq.com/forum/t/53111/2/
    It's available on Metalink as:
    <u>Note:221854.1 How To Call A WebService From a PL/SQL function</u>
    Good luck,
    Eric

  • Need help in using web service of UCM in C#

    I am trying to use the "Search" web service of UCM in C#.
    The code below is what I did,
    ucm_server.Search search = new ucm_server.Search();
    search.Credentials = new NetworkCredential("sysadmin", "idc");
    QuickSearchResult result = search.QuickSearch("xKeywords like `lvl`", null);
    "xKeywords" is a custom metadata field and it works well in content server. "lvl" is what I want to search.
    And this is the error message:
    Unable to retrieve search results. Parsing error at character 13 in query: "xKeywords like `lvl`"
    Here is what I tried in the "queryText" parameter, but I got the same error message
    [*]xKeywords like 'lvl'
    [*]xKeywords <substring> `lvl`
    [*]xKeywords <substring> 'lvl'
    [*]xKeywords like &quot;%lvl%&quot;
    I got the error whatever I define for extraProps.
    I don't know what the "queryText" parameter should be in C#. Could someone help me with this? Thanks a lot.
    I knew the reason. xKeywords is a custom metadata field and it works with a default metadata field like "dDocName".
    But I still do not know how to make it to work with a custom field:(
    Edited by: [email protected] on Jun 24, 2010 7:49 PM

    Its a UCM setting... go to "Administration > System Audit Information" and enable socket tracing. Then click the "view server output" button to see what raw data is coming to the UCM from your .NET application. You may need to turn on "verbose" tracing as well. Do this one a test box, because it will generate a TON of output...

  • Help needed in calling a Web service

    Hi,
    I want to call a web service from my component. The called web service might have different names, therefore I don't want to use the proxy class way.
    I am facing problem in parsing the input parameters from the wsdl file. I have attached the wsdl file at the end.
    I am using the javax.wsdl.xml.WSDLReader(axis). I have been able to parse all the bindings, ports and messages but
    1. i am not able to parse the wsdl:types to obtain the input parameters
    //javax.wsdl.Operation op obtained from the port which alternatively obtained from Definition
    Message inputs = op.getInput().getMessage();
    Part part = null;
    // let's find the input params
    Map inputParts = inputs.getParts();
    // create the object array which Axis will use to pass in the parameters
    inputParams = new Object[inputParts.size()];
    s = inputParts.keySet();
    it = s.iterator();
    int i = 0;
    while(it.hasNext())
    part = (Part) inputParts.get(it.next());
    Afetr performing this, i have no clue as to how to parse the input parameters.
    2. How will i generate the java Objects array from these input parameters to pass to the Call.invoke function, i.e.
    Call call = (Call) service.createCall();
    call.setOperation(portQN, operationName);
    Object ret = (Integer) call.invoke(inputParams);
    The function takes an object[] as input but since i have complex types involved in wsdl, so how will this object array needs to be populated
    WSDL file:
    <?xml version="1.0" encoding="UTF-8" ?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://V4_0.testcenter8" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ax258="http://testcenter8.V4_0.testcenter8/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax257="http://V4_0.testcenter8/xsd" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://V4_0.testcenter8">
    <wsdl:types>
    <xs:schema xmlns:ax260="http://V4_0.testcenter8/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://V4_0.testcenter8">
    <xs:import namespace="http://V4_0.testcenter8/xsd" />
    <xs:element name="executeRuleset">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="param0" nillable="true" type="ax257:testcenter8_V4_0_Req" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="executeRulesetResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="return" nillable="true" type="ax257:testcenter8_V4_0_Resp" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    <xs:schema xmlns:ax259="http://testcenter8.V4_0.testcenter8/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://V4_0.testcenter8/xsd">
    <xs:import namespace="http://testcenter8.V4_0.testcenter8/xsd" />
    <xs:complexType name="testcenter8_V4_0_Req">
    <xs:sequence>
    <xs:element minOccurs="0" name="cabinetName" nillable="true" type="xs:string" />
    <xs:element minOccurs="0" name="inputsobj" nillable="true" type="ax258:Inputs" />
    <xs:element minOccurs="0" name="loginReqd" type="xs:boolean" />
    <xs:element minOccurs="0" name="outputsobj" nillable="true" type="ax258:Outputs" />
    <xs:element minOccurs="0" name="password" nillable="true" type="xs:string" />
    <xs:element minOccurs="0" name="userName" nillable="true" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="testcenter8_V4_0_Resp">
    <xs:sequence>
    <xs:element minOccurs="0" name="inputsobj" nillable="true" type="ax258:Inputs" />
    <xs:element minOccurs="0" name="outputsobj" nillable="true" type="ax258:Outputs" />
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://testcenter8.V4_0.testcenter8/xsd">
    <xs:complexType name="Inputs">
    <xs:sequence>
    <xs:element minOccurs="0" name="description" nillable="true" type="xs:string" />
    <xs:element minOccurs="0" name="subject" nillable="true" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Outputs">
    <xs:sequence>
    <xs:element minOccurs="0" name="category" nillable="true" type="xs:string" />
    <xs:element minOccurs="0" name="massRequestType" type="xs:int" />
    <xs:element minOccurs="0" name="subCategory" nillable="true" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    </wsdl:types>
    <wsdl:message name="executeRulesetRequest">
    <wsdl:part name="parameters" element="ns:executeRuleset" />
    </wsdl:message>
    <wsdl:message name="executeRulesetResponse">
    <wsdl:part name="parameters" element="ns:executeRulesetResponse" />
    </wsdl:message>
    <wsdl:portType name="testcenter8_V4_0WebServicePortType">
    <wsdl:operation name="executeRuleset">
    <wsdl:input message="ns:executeRulesetRequest" wsaw:Action="urn:executeRuleset" />
    <wsdl:output message="ns:executeRulesetResponse" wsaw:Action="urn:executeRulesetResponse" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="testcenter8_V4_0WebServiceSoap11Binding" type="ns:testcenter8_V4_0WebServicePortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    <wsdl:operation name="executeRuleset">
    <soap:operation soapAction="urn:executeRuleset" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="testcenter8_V4_0WebServiceSoap12Binding" type="ns:testcenter8_V4_0WebServicePortType">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    <wsdl:operation name="executeRuleset">
    <soap12:operation soapAction="urn:executeRuleset" style="document" />
    <wsdl:input>
    <soap12:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap12:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="testcenter8_V4_0WebServiceHttpBinding" type="ns:testcenter8_V4_0WebServicePortType">
    <http:binding verb="POST" />
    <wsdl:operation name="executeRuleset">
    <http:operation location="testcenter8_V4_0WebService/executeRuleset" />
    <wsdl:input>
    <mime:content type="text/xml" part="executeRuleset" />
    </wsdl:input>
    <wsdl:output>
    <mime:content type="text/xml" part="executeRuleset" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="testcenter8_V4_0WebService">
    <wsdl:port name="testcenter8_V4_0WebServiceHttpSoap11Endpoint" binding="ns:testcenter8_V4_0WebServiceSoap11Binding">
    <soap:address location="http://192.168.56.89:8080/axis2/services/testcenter8_V4_0WebService.testcenter8_V4_0WebServiceHttpSoap11Endpoint/" />
    </wsdl:port>
    <wsdl:port name="testcenter8_V4_0WebServiceHttpSoap12Endpoint" binding="ns:testcenter8_V4_0WebServiceSoap12Binding">
    <soap12:address location="http://192.168.56.89:8080/axis2/services/testcenter8_V4_0WebService.testcenter8_V4_0WebServiceHttpSoap12Endpoint/" />
    </wsdl:port>
    <wsdl:port name="testcenter8_V4_0WebServiceHttpEndpoint" binding="ns:testcenter8_V4_0WebServiceHttpBinding">
    <http:address location="http://192.168.56.89:8080/axis2/services/testcenter8_V4_0WebService.testcenter8_V4_0WebServiceHttpEndpoint/" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Regards
    Nitin

    An update -
    I want to call a web service from my component. The called web service might have different names, therefore I don't want to use the proxy class way.
    I am parsing the WSDL file and obtaining the different parameters. But i am having problem in passing the parameters(receiving as well) to the web service and i am not able to find any good refernce on the internet, i am getting the following exception:
    org.xml.sax.SAXException: Invalid element in javax.xml.rpc.namespace.QName - inputsobj
    at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(Unknown Source)
    at org.apache.axis.AxisFault.makeFault(Unknown Source)
    at org.apache.axis.encoding.DeserializationContextImpl.startElement(Unknown Source)
    at org.apache.axis.message.SAX2EventRecorder.replay(Unknown Source)
    at org.apache.axis.message.MessageElement.publishToHandler(Unknown Source)
    at org.apache.axis.client.Call.invoke(Unknown Source)
    at org.apache.axis.message.RPCElement.deserialize(Unknown Source)
    at org.apache.axis.message.RPCElement.getParams(Unknown Source)
    at org.apache.axis.client.Call.invoke(Unknown Source)
    at org.apache.axis.client.Call.invoke(Unknown Source)
    at org.apache.axis.client.Call.invoke(Unknown Source)
    at org.apache.axis.client.Call.invoke(Unknown Source)
    at javaapplication17.Invoke.axisInvoke(Invoke.java:639)
    at javaapplication17.Invoke.parseWSDL(Invoke.java:423)
    at javaapplication17.Invoke.run(Invoke.java:76)
    at javaapplication17.Invoke.main(Invoke.java:64)
    at org.apache.axis.client.Call.invoke(Unknown Source)
    Error invoking service : org.xml.sax.SAXException: Invalid element in javax.xml.rpc.namespace.QName - inputsobj
    at javaapplication17.Invoke.axisInvoke(Invoke.java:639)
    at javaapplication17.Invoke.parseWSDL(Invoke.java:423)
    at javaapplication17.Invoke.run(Invoke.java:76)
    at javaapplication17.Invoke.main(Invoke.java:64)
    Caused by: org.xml.sax.SAXException: Invalid element in javax.xml.rpc.namespace.QName - inputsobj
    at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(Unknown Source)
    at org.apache.axis.encoding.DeserializationContextImpl.startElement(Unknown Source)
    at org.apache.axis.message.SAX2EventRecorder.replay(Unknown Source)
    at org.apache.axis.message.MessageElement.publishToHandler(Unknown Source)
    at org.apache.axis.message.RPCElement.deserialize(Unknown Source)
    at org.apache.axis.message.RPCElement.getParams(Unknown Source)
    ... 7 more
    Following is the code snippet and the passed values to the function:
    Parameters passed to the test function:
    targetNamespace = "http://V5_0.testcenter8"
    serviceName = "testcenter8_V5_0WebServiceHttpSoap11Endpoint"
    portName = "http://V5_0.testcenter8:testcenter8_V5_0WebService"
    operationName = "executeRuleset"
    arrListParameters; //obtained by parsing the XSD using XMLSchema(XSD created from wsdl types tag)
    implURI = "http://192.168.56.89:8080/axis2/services/testcenter8_V5_0WebService?wsdl"
    test function:
    NOTE:some things have been hardcoded.
    public void axisInvoke(String targetNamespace, String serviceName, String portName,
    String operationName, ArrayList<Parameter> arrListParameters, String implURI)
    try
    // first, due to a funny Axis idiosyncracy we must strip portName of
    // it's target namespace so we can pass it in as targetNamespace, localPart
    int index = portName.indexOf(":", portName.indexOf("http://") + new String("http://").length());
    String portNamespace = portName.substring(0, index);
    portName = portName.substring(index == 0 ? index : index + 1); // to strip the :
    javax.xml.rpc.namespace.QName serviceQN = new javax.xml.rpc.namespace.QName(portNamespace, portName);
    org.apache.axis.client.Service service = new org.apache.axis.client.Service(new URL(implURI), serviceQN);
    javax.xml.rpc.namespace.QName portQN = new javax.xml.rpc.namespace.QName(targetNamespace, serviceName);
    // This Call object will be used the invocation
    Call call = (Call) service.createCall();
    // Now make the call...
    System.out.println("Invoking service >> " + serviceName + " <<...");
    //call.setOperation(portQN, operationName); //do not work
    call.setOperationName(new javax.xml.rpc.namespace.QName("http://V5_0.testcenter8", "executeRuleset"));
    call.removeAllParameters();// why there is parameters already added to the list of parameters
    //call.addParameter(new javax.xml.rpc.namespace.QName(strNameSpaceURI, strParamName), org.apache.axis.Constants.XSD_STRING, ParameterMode.PARAM_MODE_INOUT);
    ArrayList<Object> arrListInputParameters = new ArrayList<Object>();
    for(int i = 0; i < arrListParameters.size(); i++)
    String strParamName = arrListParameters.get(i).strParamName;
    String strParamType = arrListParameters.get(i).strParamType;
    String strNameSpaceURI = arrListParameters.get(i).strParamNameSpaceURI;
    if(strNameSpaceURI.compareToIgnoreCase("http://www.w3.org/2001/XMLSchema") == 0)
    boolean isInParam = true;
    if(strParamName.compareToIgnoreCase("cabinetName") == 0)
    call.addParameter(new javax.xml.rpc.namespace.QName(strNameSpaceURI, strParamName), org.apache.axis.Constants.XSD_STRING, ParameterMode.PARAM_MODE_INOUT);
    arrListInputParameters.add("testcenter8");
    else if(strParamName.compareToIgnoreCase("loginReqd") == 0)
    call.addParameter(new javax.xml.rpc.namespace.QName(strNameSpaceURI, strParamName), org.apache.axis.Constants.XSD_BOOLEAN, ParameterMode.PARAM_MODE_INOUT);
    arrListInputParameters.add(false);
    else if(strParamName.compareToIgnoreCase("password") == 0)
    call.addParameter(new javax.xml.rpc.namespace.QName(strNameSpaceURI, strParamName), org.apache.axis.Constants.XSD_STRING, ParameterMode.PARAM_MODE_INOUT);
    arrListInputParameters.add("D@nger0us");
    else if(strParamName.compareToIgnoreCase("userName") == 0)
    call.addParameter(new javax.xml.rpc.namespace.QName(strNameSpaceURI, strParamName), org.apache.axis.Constants.XSD_STRING, ParameterMode.PARAM_MODE_INOUT);
    arrListInputParameters.add("sanjeev");
    else if(strParamName.compareToIgnoreCase("description") == 0)
    call.addParameter(new javax.xml.rpc.namespace.QName(strNameSpaceURI, strParamName), org.apache.axis.Constants.XSD_STRING, ParameterMode.PARAM_MODE_INOUT);
    arrListInputParameters.add("Change Address");
    else if(strParamName.compareToIgnoreCase("subject") == 0)
    call.addParameter(new javax.xml.rpc.namespace.QName(strNameSpaceURI, strParamName), org.apache.axis.Constants.XSD_STRING, ParameterMode.PARAM_MODE_INOUT);
    arrListInputParameters.add("Credit Card");
    else if(strParamName.compareToIgnoreCase("category") == 0)
    call.addParameter(new javax.xml.rpc.namespace.QName(strNameSpaceURI, strParamName), org.apache.axis.Constants.XSD_STRING, ParameterMode.PARAM_MODE_INOUT);
    arrListInputParameters.add("");
    isInParam = false;
    else if(strParamName.compareToIgnoreCase("massRequestType") == 0)
    call.addParameter(new javax.xml.rpc.namespace.QName(strNameSpaceURI, strParamName), org.apache.axis.Constants.XSD_INTEGER, ParameterMode.PARAM_MODE_INOUT);
    arrListInputParameters.add((int) 1);
    isInParam = false;
    else
    call.addParameter(new javax.xml.rpc.namespace.QName(strNameSpaceURI, strParamName), org.apache.axis.Constants.XSD_STRING, ParameterMode.PARAM_MODE_INOUT);
    arrListInputParameters.add("");
    isInParam = false;
    /*if(isInParam)
    call.addParameter(strParamName, org.apache.axis.Constants.XSD_STRING, ParameterMode.PARAM_MODE_INOUT);
    //call.addParameter(strParamName, new javax.xml.rpc.namespace.QName(strNameSpaceURI, strParamName), ParameterMode.PARAM_MODE_INOUT);
    else
    call.addParameter(strParamName, new javax.xml.rpc.namespace.QName(strNameSpaceURI, strParamName), ParameterMode.PARAM_MODE_INOUT);
    /*inputParams = new Object[arrListInputParameters.size() + 1];
    inputParams[0] = "";
    for(int i = 1; i <= arrListInputParameters.size(); i++)
    inputParams[i] = arrListInputParameters.get(i - 1);
    inputParams = new Object[arrListInputParameters.size()];
    for(int i = 0; i < arrListInputParameters.size(); i++)
    inputParams[i] = arrListInputParameters.get(i);
    call.setReturnType(org.apache.axis.Constants.XSD_QNAME);
    //call.setReturnType(org.apache.axis.Constants.XSD_ANYTYPE);
    call.setTargetEndpointAddress(new URL("http://192.168.56.89:8080/axis2/services/testcenter8_V5_0WebService.testcenter8_V5_0WebServiceHttpSoap11Endpoint"));
    Object ret = call.invoke(inputParams);
    System.out.println("Result returned from call to " + serviceName + " -- " + ret);
    System.out.println("Finished");
    catch(java.net.MalformedURLException e)
    System.out.println("Error invoking service : " + e);
    e.printStackTrace();
    catch(javax.xml.rpc.ServiceException e2)
    System.out.println("Error invoking service : " + e2);
    e2.printStackTrace();
    catch(java.rmi.RemoteException e3)
    System.out.println("Error invoking service : " + e3);
    e3.printStackTrace();
    WSDL file:
    WSDL file:
    <?xml version="1.0" encoding="UTF-8" ?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://V4_0.testcenter8" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ax258="http://testcenter8.V4_0.testcenter8/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax257="http://V4_0.testcenter8/xsd" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://V4_0.testcenter8">
    <wsdl:types>
    <xs:schema xmlns:ax260="http://V4_0.testcenter8/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://V4_0.testcenter8">
    <xs:import namespace="http://V4_0.testcenter8/xsd" />
    <xs:element name="executeRuleset">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="param0" nillable="true" type="ax257:testcenter8_V4_0_Req" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="executeRulesetResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="return" nillable="true" type="ax257:testcenter8_V4_0_Resp" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    <xs:schema xmlns:ax259="http://testcenter8.V4_0.testcenter8/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://V4_0.testcenter8/xsd">
    <xs:import namespace="http://testcenter8.V4_0.testcenter8/xsd" />
    <xs:complexType name="testcenter8_V4_0_Req">
    <xs:sequence>
    <xs:element minOccurs="0" name="cabinetName" nillable="true" type="xs:string" />
    <xs:element minOccurs="0" name="inputsobj" nillable="true" type="ax258:Inputs" />
    <xs:element minOccurs="0" name="loginReqd" type="xs:boolean" />
    <xs:element minOccurs="0" name="outputsobj" nillable="true" type="ax258:Outputs" />
    <xs:element minOccurs="0" name="password" nillable="true" type="xs:string" />
    <xs:element minOccurs="0" name="userName" nillable="true" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="testcenter8_V4_0_Resp">
    <xs:sequence>
    <xs:element minOccurs="0" name="inputsobj" nillable="true" type="ax258:Inputs" />
    <xs:element minOccurs="0" name="outputsobj" nillable="true" type="ax258:Outputs" />
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://testcenter8.V4_0.testcenter8/xsd">
    <xs:complexType name="Inputs">
    <xs:sequence>
    <xs:element minOccurs="0" name="description" nillable="true" type="xs:string" />
    <xs:element minOccurs="0" name="subject" nillable="true" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Outputs">
    <xs:sequence>
    <xs:element minOccurs="0" name="category" nillable="true" type="xs:string" />
    <xs:element minOccurs="0" name="massRequestType" type="xs:int" />
    <xs:element minOccurs="0" name="subCategory" nillable="true" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    </wsdl:types>
    <wsdl:message name="executeRulesetRequest">
    <wsdl:part name="parameters" element="ns:executeRuleset" />
    </wsdl:message>
    <wsdl:message name="executeRulesetResponse">
    <wsdl:part name="parameters" element="ns:executeRulesetResponse" />
    </wsdl:message>
    <wsdl:portType name="testcenter8_V4_0WebServicePortType">
    <wsdl:operation name="executeRuleset">
    <wsdl:input message="ns:executeRulesetRequest" wsaw:Action="urn:executeRuleset" />
    <wsdl:output message="ns:executeRulesetResponse" wsaw:Action="urn:executeRulesetResponse" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="testcenter8_V4_0WebServiceSoap11Binding" type="ns:testcenter8_V4_0WebServicePortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    <wsdl:operation name="executeRuleset">
    <soap:operation soapAction="urn:executeRuleset" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="testcenter8_V4_0WebServiceSoap12Binding" type="ns:testcenter8_V4_0WebServicePortType">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    <wsdl:operation name="executeRuleset">
    <soap12:operation soapAction="urn:executeRuleset" style="document" />
    <wsdl:input>
    <soap12:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap12:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="testcenter8_V4_0WebServiceHttpBinding" type="ns:testcenter8_V4_0WebServicePortType">
    <http:binding verb="POST" />
    <wsdl:operation name="executeRuleset">
    <http:operation location="testcenter8_V4_0WebService/executeRuleset" />
    <wsdl:input>
    <mime:content type="text/xml" part="executeRuleset" />
    </wsdl:input>
    <wsdl:output>
    <mime:content type="text/xml" part="executeRuleset" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="testcenter8_V4_0WebService">
    <wsdl:port name="testcenter8_V4_0WebServiceHttpSoap11Endpoint" binding="ns:testcenter8_V4_0WebServiceSoap11Binding">
    <soap:address location="http://192.168.56.89:8080/axis2/services/testcenter8_V4_0WebService.testcenter8_V4_0WebServiceHttpSoap11Endpoint/" />
    </wsdl:port>
    <wsdl:port name="testcenter8_V4_0WebServiceHttpSoap12Endpoint" binding="ns:testcenter8_V4_0WebServiceSoap12Binding">
    <soap12:address location="http://192.168.56.89:8080/axis2/services/testcenter8_V4_0WebService.testcenter8_V4_0WebServiceHttpSoap12Endpoint/" />
    </wsdl:port>
    <wsdl:port name="testcenter8_V4_0WebServiceHttpEndpoint" binding="ns:testcenter8_V4_0WebServiceHttpBinding">
    <http:address location="http://192.168.56.89:8080/axis2/services/testcenter8_V4_0WebService.testcenter8_V4_0WebServiceHttpEndpoint/" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

  • Need assistance invoking a Web Service from JCaps 5.1.2.

    Hello,
    I am working with web services for the first time ever, and am having some trouble invoking one from with JCaps 5.1.2. Basically, the business process is validating fine, and will run up to the Invoke procedure, at which time it throws a log file error:
    HTTP Status-Code 404: Not Found - /wsTestInvoke and the associated fault container is not available.
    However, I have already tested this same wsdl in SoapUI, from the same server which is running the domain. SoapUI runs this wsdl without any errors.
    As stated, this is the first time I have ever tried to use web services. I�m at a loss right now as to what steps to take to even try to debug this. My guess is that something in the JCaps setup needs updated, but I�m not sure what, or where to begin looking.
    FYI, I have created a web service that I am hosting, and it can be invoked fine from SoapUI. My SoapHTTP Client and Server are both configured the same right now, and I know at least the Server is working, since I can host a WS. I just can't seem to invoke one.
    Has anyone seen this error when working with Web Services in JCaps 5.1.2, and any ideas of where to look to start debugging this?
    Any info is appreciated.
    Thanks,
    Alan

    I figured this out myself, and just want to post the resolution in case anyone else runs into this.
    This issue was that I was setting the port and server in the HTTP Client External System config, to be the JCaps domain server and HTTP port. I found that you need to leave the external system properties blank in the HTTP Client, and when you build the code, the environment items then get auto-populated from the wsdl.
    Problem solved.

  • Need help in EJB Web Services

    I have been programming an EJB Web Service. I programmed the EJB and I have programmed the Client. It works properly when I execute it in the command line.
    However, I would like to access it using a web page. I have tried with a JSP (I posted some messages in the forum before) but I had lots of problems because of the versions. I have tried with a servlet but it doesn't work (I don't know really how to execute it, where to deploy it, what is the address to write in the iExplorer, and so on).
    Please, if somebody can help me I will be very thankful.
    I am new in developing with J2EE and OC4J and I am desperate!
    I need documentation or a complete example for OC4J 9.0.3.
    Thank you very much!
    Paloma

    I have been programming an EJB Web Service. I programmed the EJB and I have programmed the Client. It works properly when I execute it in the command line.
    However, I would like to access it using a web page. I have tried with a JSP (I posted some messages in the forum before) but I had lots of problems because of the versions. I have tried with a servlet but it doesn't work (I don't know really how to execute it, where to deploy it, what is the address to write in the iExplorer, and so on).
    Please, if somebody can help me I will be very thankful.
    I am new in developing with J2EE and OC4J and I am desperate!
    I need documentation or a complete example for OC4J 9.0.3.
    Thank you very much!
    Paloma

  • Need info on Standard Web services to pull Order data in CRM from external applications

    Hi Gurus,
    I have a requirement to pull Order data in CRM from external non-sap application using Web services. Are there any standard SAP provided web services to pull order data based on some input? If yes, can you provide me any kind of documentation related to this?
    Appreciate your help on this.
    Thanks
    Lakshman

    Hi Lakshman,
    I have checked further.
    Please review below link of the SAP Help documentation :
    http://help.sap.com/saphelp_nw70/helpdata/en/47/3a989cbcef2f35e10000000a1553f6/content.htm?frameset=/en/46/97218e79f115eae10000000a114a6b/frameset.htm&current_toc=/en/d1/802cfc454211d189710000e8322d00/plain.htm&node_id=439&show_children=false
    and also the link :
    –http://esworkplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?packageid=DE0426DD9B0249F19515001A64D3F462&id=347DD31EB5AB4BC592BD8B29C0981A1B
    Hoping that this will be helpful.
    Best regards - Christophe

  • Need help calling stateful web service from BPEL 10.1.3.1

    I found the tutorial located at http://www.oracle.com/technology/products/ias/bpel/htdocs/callingstatefulwsfrombpel.html which talks about how to call a stateful web service, it is also mentioned on Clemens Utschig's SOA blog.
    The problem is that the code for the handlers will not compile as given under 10.1.3.1 -- it seems that the method signature for the invoke method has changed in the interface com.collaxa.cube.ws.HeaderHandler
    Has anyone gotten this to work in 10.1.3.1 or can anyone give me a tip on how to call a stateful web service in a different manner from BPEL?
    Thanks!

    Hi,
    'm trying to call a username/password secured service,
    with
    <property name="basicHeaders">credentials</property>
    <property name="basicUsername">username</property>
    <property name="basicPassword">password</property>
    But getting the following exception,
    FAIL :: Cause : :exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Bad Set-Cookie header: JSESSIONID_twos=Lf1VTn7Q5KG5PhtJlGjTTM0nhhJ5FLyR51zZJLLBGfVs04VY8fmv!-728969536; domain=wosdev; path=/; secure=true, WLAUTHCOOKIE_JSESSIONID_btwosfportal=ZHfuVwF5kudqtHEoR6Ap; path=/; secure Expected ';' or ',' at position 131:
    Kindly help!
    Thanks,
    ChandraMouli
    Edited by: user13110451 on Sep 8, 2011 5:52 AM

  • NEED HELP WITH DATABASE WEB SERVICE INTEGRATION

    Hello everybody. I have created a web service with returns a list of records extracted from a database. It works, Apex references the web service and get the result when I test it, but I want to display results in a page type "Form and Report on Web Service" and when I associate the web service to the page and click on "Finish Button" I get this message:
    "This Web service does not have a result tree in its definition that is appropriate for a report. You may wish to run the Form on Web Service wizard instead.".
    It is correct, of course, but I do not have an example of how to do an appropriate definition for this kind of report.What kind of definition is it waiting for? What I do in the web service is to return a list of items (a resultset of a query such as "SELECT PRODUCTID, PRODUCTNAME, PRICE, IMAGEHREF FROM PRODUCTS") concatenated in a string (commas-separated values). What kind of output must the web service produce or how have I to structure the associated wsdl document in order to display the result with a "form and report on web service" page?
    Every help or example is welcome.
    Thanks a lot and have a nice day
    Stefano-ITALY

    i saw that it is giving this below error but not sure why ??
    org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method registerEmployee
    at org.apache.axis2.util.Utils.getInboundFaultFromMes sageContext(Utils.java:486)
    at org.apache.axis2.description.OutInAxisOperationCli ent.handleResponse(OutInAxisOperation.java:343)
    at org.apache.axis2.description.OutInAxisOperationCli ent.send(OutInAxisOperation.java:389)
    at org.apache.axis2.description.OutInAxisOperationCli ent.executeImpl(OutInAxisOperation.java:211)
    at org.apache.axis2.client.OperationClient.execute(Op erationClient.java:163)
    at webservice.EmployeeServiceStub.registerEmployee(Em ployeeServiceStub.java:488)
    at webservice.EmployeeClient.main(EmployeeClient.java :22)can anyone suggest why this might come ?
    thanks

  • Help needs to build this web service and do this exercise

    **i'm a newbie to java. can anybody give me a help here.**
    Exercises :
    1) Develop customer profile web service as below: which having two methods saveCustomer and retrieveCustomer
    Customer infomation data structure as follows
    CustomerID :string
    Name :string
    phoneNumber : int
    Address : Object which contain(home number(int), street(string), town(string))- Complex type object
    Age: int
    LastBalance: double
    Ex1:
    you send the SOAP request (in your web service call) with customer id or phone number the web service should return customer information and display as system out.
    Note Just hard code customer dummy data inside web service method call getCustomerData which return the customer object.
    Ex2
    Compose customer object (java object) in client side and send via web service using web service save method to write to a data to text file in server side (in your case same machine , but it create by customer profile web service not the web service client)
    Objective of this exercise is to understand web service / soap complex and simple variable types and how to exchange those with SOAP request and response.
    Exercise 3:
    send some wrong customer id or phone number as input to webservice method "retrieveCustomer" and generate error and send it via SOAP fault to client and display it

    ok thanks any way. i hav done most of the exercise. don't know wthr the appraoch is correct or incorrect. i'll post what i have done up to now.
    Customer.java FILE
    package com.server;
    public class Customer {
         public String customerID;
         public String customerName;
         public int phoneNumber;
         public Adress[] address;
            public int age;
         public double balance;
    Address.java FILE
    package com.server;
    public class Address {
         public int homeNumber;
         public String street;
         public String town;
    CustomerService.java FILE
    package com.server;
    public class CustomerService{
         public Customer getCustomerData(int CustomerID){
              Address address1 = new Address();
              address1.homeNumber = 23;
              address1.street = "silva lane";
              address1.town = "kandy";
              Address address2 = new Address();
              address2.homeNumber = 45;
              address2.street = "gampola road";
              address2.town = "peradeniya";
              Address [1] address = new Address[] { address1, address2 };
              Customer customer = new Customer();
              customer.customerID = "abc";
              customer.customerName = "mahesh";
              customer.customerphoneNumber = 345565767;
              customer.address = address;
              customer.age = 25;
              customer.balance = 25000.00;
              return customer;
    }is thr anything i hav missed. please advice.
    Edited by: kellyg909 on Mar 31, 2009 9:26 AM

  • I need some helps about Web Services & Entity Bean

    Hi everybody,
    Using Jbuilder I can create Web Services object from Session Bean (with Weblogic 8.1).
    I am wondering that: Can I create Web Service object from Entity Bean? Eg: with BMP or CMP?
    If anyone knows how to do, please help me or give me the documents I can refer to!
    Thanks in advance!

    Hi everybody,
    Using Jbuilder I can create Web Services object from Session Bean (with Weblogic 8.1).
    I am wondering that: Can I create Web Service object from Entity Bean? Eg: with BMP or CMP?
    If anyone knows how to do, please help me or give me the documents I can refer to!
    Thanks in advance!

  • Need to publish SAP Web Service without Authintication

    Hello Everyone,
    I have created a web service for my XI congiguration scenario for my outbound interface. Now each time when client system (Non SAP System) tries to publish my SAP Web Service, it asks the authentication of credentials (SAP username & Password).
    We want to publish our SAP Web Service without Authintication.
    Please suggest us how can we do that?
    Regards,
    Pranil Shinde.

    Hi,
    The user authentication of the SOAP adapter is not part of the SOAP adapter but of the web container of the J2EE engine. The default authentication setting is defined in the web.xml descriptor file of the SOAP adapter web application. This setting may be modified from Visual Administrator with some restriction. Please refer to the security documentation for the J2EE engine fro the same.
    Regards,
    Swetha.

  • Need information to Consume Web service through DOE.

    Hi  All,
    I need information as to how I can consume a simple webservice that I have into the DOE.
    Please let me know the steps to proceed.
    Thanks,
    Krutheeka.

    I do not see why it will not be possible to do digest authentication with a web server using PL/SQL.
    As for the digest password - the web server supplies a token (a nonce) which you need to use for creating the hashed authentication token (the digest password). The URL I posted explains this authentication process.
    As for the technical how-to in PL/SQL - as I mentioned, never had to do this (only dealt with Basic and NTLM authentication thus far). But as other auth methods (such as Microsoft's NTLM) can be implemented, I do not see why digest authentication could not.
    Suggest you spend some time googling for technical articles/sample code on the subject - and try to find specific PL/SQL related sample code too.

  • Help needed in designing the Web Service Interface

    Hi,
    In have a scenario where a client will be sending an XML file , which is a SOAP message to a webservice. I would like to know what the input datatype for this interface would be?
    Is the following correct?
    interface MyWebService{
    public String recieveMessage(String aSOAPMessage);
    Also once I get the SOAP message what is the best way to parse or iterate through its contents.
    Any pointers or examples would be highly appreciated.
    Thanks
    Murtuza

    Hi,
    In have a scenario where a client will be sending an XML file , which is a SOAP message to a webservice. I would like to know what the input datatype for this interface would be?
    Is the following correct?
    interface MyWebService{
    public String recieveMessage(String aSOAPMessage);
    Also once I get the SOAP message what is the best way to parse or iterate through its contents.
    Any pointers or examples would be highly appreciated.
    Thanks
    Murtuza

Maybe you are looking for