Request handling in web service

Hi guys,
is there a way to "handle" the request within a web service (like HTTPrequest obj in servlets)? i.e. for retrieving the context and so on .. ?
thanks to anybody who will answer me
J.

Hi guys,
is there a way to "handle" the request within a web
service (like HTTPrequest obj in servlets)? i.e. for
retrieving the context and so on .. ?
thanks to anybody who will answer me
J.See if this works for you. Have your service impl class also
implement javax.xml.rpc.server.ServiceLifecycle. Then you'll
have to add an init() and destroy() method (see the javadocs).
If you declare a ServletEndpointContext field, then in
init you can do
public void init(Object context) {
myServletEndpointContext = (ServletEndpointContext) context;
and in subsequent methods do
myHttpSession = servletEndpointContext.getHttpSession()
(don't do this part in init, do it during business method calls)
Cheers,
Bobby

Similar Messages

  • Is complex type request supported by web service data set?

    I just installed OBIEE 11g and tried to create data models with web services. It works fine for web services that takes simple data types and returns complex data types. But if the request to the web service is a complex type, it doesn't work. On the Edit Data Set page, I selected "true" for Complex Type. After I entered WSDL url, it populated the Web Service dropdown, but not the Method dropdown. Any ideas?
    The other problem I am having with web service data set is that it seems to ignore the attributes in the xml response. Only xml element is recognized.
    e.g. in <trigger priority="0" font_size="0"/>, priority and font_size are ignored in the data set. Please advise. Thanks.

    Hi,
    In this usecase , you can DnD the <serviceOperationName>_parameters as an ADF from. Then DnD the operation as a method. The methods input arg value is automatically set to the parameterIterator.currentRow.DataProvider. This works fine.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Fault Handling in Web Services

    Hi,
    Can anyone please point me to any document which explains about the fault handling in Web Services using Bottom-up Approach?
    Thanks

    Can you give some further information?
    Do you want to throw a fault an your webservice and you are asking how this fault is seen by the service requestor? If you throw a exception it is mapped to
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="RuntimeFault" targetNamespace="http://schemas.oracle.com/bpel/extension" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <message name="RuntimeFaultMessage">
    <part name="code" type="xsd:string"/>
    <part name="summary" type="xsd:string"/>
    <part name="detail" type="xsd:string"/>
    </message>
    </definitions>
    Have you tried
    http://www.oracle.com/technology/products/ias/bpel/pdf/orabpel-Training-Segment06.pdf?
    This is top down but perhaps you can learn from it.

  • Error with SOAP Request to calendar web service

    Hi
    I'm sending the following SOAP request to a calendar web service to create an appointment in the calendar. The response returns what seems to be a syntax error ("The Create method did not have a proper element in the request") but I can't see the cause of the fault. Any suggestions on what it may be? It's an 11g DB.
    Many thanks
    -x-POST-x-
    POST /ocws-bin/ocas.fcgi HTTP/1.0
    Content-Type: text/xml; charset="utf-8"
    Content-Length: 993
    SOAPAction: SOAPAction: "http://www.oracle.com/WebServices/Calendaring/1.0/Create"
    Connection: close
    <SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header><auth:BasicAuth xmlns:auth="http://soap-authentication.org/2002/01/">
    <Name>CalendarName</Name><Password>CalendarPassword</Password>
    </auth:BasicAuth> </SOAP-ENV:Header>
    <SOAP-ENV:Body><cwsl:Create xmlns:cwsl="http://www.oracle.com/WebServices/Calendaring/1.0/"><CmdId>ITS APPOINTMENT</CmdId><iCalendar>
    <vcalendar prodid="-//Oracle//Calendaring//Calendarlet//EN" version="2.0">
    <vevent><class>PUBLIC</class>
    <description>Calendar Body</description>
    <dtstart value="DATE-TIME">20102905T120000</dtstart>
    <duration>P00DT0H30M00S</duration>
    <location>Location of user</location>
    <summary>Incident ID - (name of user])</summary>
    <uid>XGjRVnpReQALNsILlBlvcyXGCoUyXF</uid>
    <x-oracle-eventtype>APPOINTMENT</x-oracle-eventtype>
    <priority>5</priority>
    </vevent>
    </vcalendar>
    </iCalendar></cwsl:Create></SOAP-ENV:Body></SOAP-ENV:Envelope>
    -x-RESPONSE-x-
    HTTP/1.1 500 Internal Server Error
    Date: Thu, 27 May 2010 08:22:16 GMT
    Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a mod_fastcgi/2.4.6
    OCAS-ProcTime: 407
    Connection: close
    Content-Type: text/xml; charset=utf-8
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Server.Error::System::SOAPRequest</faultcode>
    <faultstring>The Create method did not have a proper element in the request</faultstring>
    <detail>
    <cwsl:Error xmlns:cwsl="http://www.oracle.com/WebServices/Calendaring/1.0/">
    <Class>Error::System::SOAPRequest</Class>
    <Code>0020-00-00-00000034</Code>
    <Line>3180</Line>
    <FileName>SOAPRequestHandler.cpp,v</FileName>
    <Version>1.57</Version>
    <LastMod>2007/05/30 21:13:25</LastMod>
    <Author>pscattol</Author>
    <Date>Thu May 27 09:22:16 2010</Date>
    <PID>26152</PID>
    <TID>3044838304</TID>
    <Level>Error</Level>
    </cwsl:Error>
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>

    Hi,
    I am having problem using dii client, while sending a
    request to c# webservice. error follows
    QName QNAME_TYPE_STRING = new QName(NS_XSD,
    "string");
    call.setReturnType(QNAME_TYPE_STRING);
    call.setOperationName(new QName(BODY_NAMESPACE_VALUE,
    "GetDetails"));
    call.addParameter("String_1", QNAME_TYPE_STRING,
    ParameterMode.IN);Do you need another call to addParameter here?
    String[] params = { "02", "2004" };
    String result = (String)call.invoke(params);

  • Request parameter of Web Service Data Control shows up as an Object

    I have deployed a simple web service on a peoplesoft instance.
    The request message is:
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="SSR_CLASS_SEARCH_REQ">
    <xsd:annotation>
    <xsd:documentation>
    A sample element
    </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="INSTITUTION" type="xsd:string" nillable="true"/>
    <xsd:element name="TERM" type="xsd:string" nillable="true"/>
    <xsd:element name="CAREER" type="xsd:string" nillable="true"/>
    <xsd:element name="SUBJECT" type="xsd:string" nillable="true"/>
    <xsd:element name="CLASS_NBR" type="xsd:int" nillable="true"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    While the response message has a depth of three levels:
    In jdev 11g (Studio Edition Version 11.1.1.1.0, Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407) the one available for download on OTN, I perform the following steps.
    Create a Web Service Data control using the WSDL url, generated from the PSFT end.
    The Data control creates successfully. The problem is:
    - In the service operation method (in the data control) the request parameter is shown as an Object.
    - The entry under the service operation parameter tree, is 'paramater'
    The data control looks like:
    - <datacontrolname>
    - <serviceOperationName>_parameters
    - parameter
    - CAREER
    - CLASS_NBR
    - INSTITUTION
    - SUBJECT
    - TERM
    - <serviceOperationName>(Object)
    - Parameters
    - parameter
    - Return
    - <Return type>
    The return type shows up fine, with collections in hierarchy of a depth of tree.
    How do I create a parameter form for this data control.

    Hi,
    In this usecase , you can DnD the <serviceOperationName>_parameters as an ADF from. Then DnD the operation as a method. The methods input arg value is automatically set to the parameterIterator.currentRow.DataProvider. This works fine.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problems with deep request structure in web service

    I'm having problems when trying to consume an Enterprise Service-like web service in my Web Dynpro application. The web service FindXByElements has a request-structure as follows:
    XByElementsQuery
    -ProcessingConditions
    -QueryHitsMaximumNumberValue
    -QueryHitsUnlimitedIndicator
    -XSelectionByElements
    -ID
    -Year
    Regarding the structures on level two, the structure ProcessingConditions are of the global data type "WITHOUT_LASTRETURNED_QueryProcessingConditions" and are therefore typed. The structure XSelectionByElements on the other hand are just a "level" in the request structure and are therefore not typed. Both structures have occurrence 1 so they have to be filled with input data.
    The code in wdDoInit in the Component Controller looks like this:
    QueryXInModel model = new QueryXInModel();
    wdContext.nodeRequest_FindXByElements().bind(wdContext.createRequest_FindXByElementsElement(new Request_FindXByElements(model)));
    wdContext.currentRequest_FindXByElementsElement().modelObject().setXByElementsQuery(new XByElementsQuery_Sync(model));
    //Processing structure
    wdContext.currentXByElementsQueryElement().modelObject().setProcessingConditions(new WITHOUT_LASTRETURNED_QueryProcessingConditions(model));
    //Selection structure
    wdContext.currentXByElementsQueryElement().modelObject().setXSelectionByElements(new XSelectionByElements(model));
    The last row generates the following exception:
    java.lang.IllegalArgumentException: Cannot perform write operation 'setRelatedModelObject' on target role: Class 'XSelectionByElements' is not compatible to class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$002fXsdComplexType$005b3$005d$002fXsdSequence$002fXsdElement$005b2$005d$002fXsdComplexType' of target role 'XSelectionByElements' in model class 'XByElementsQuery_Sync'
    There seems to be a problem to bind a non-typed structure element to a context node since the processing structure is working fine but the selection structure are not.
    What am I doing wrong, anyone got any clues?
    /Oskar

    Hi
    QueryXInModel model = new QueryXInModel();
    wdContext.nodeRequest_FindXByElements().bind(wdContext.createRequest_FindXByElementsElement(new Request_FindXByElements(model)));
    wdContext.currentRequest_FindXByElementsElement().modelObject().setXByElementsQuery(new XByElementsQuery_Sync(model));
    //Processing structure
    wdContext.currentXByElementsQueryElement().modelObject().setProcessingConditions(new WITHOUT_LASTRETURNED_QueryProcessingConditions(model));
    //Selection structure
    wdContext.currentXByElementsQueryElement().modelObject().setXSelectionByElements(new XSelectionByElements(model));
    XByElementsQuery
    ProcessingConditions
    QueryHitsMaximumNumberValue
    QueryHitsUnlimitedIndicator
    XSelectionByElements
    ID
    Year
    as
              QueryXInModel model = new QueryXInModel();
               Request_FindXByElement  request = new Requst_FindXByElement();
                ProcessCondition   processCond  = new  ProcessCondition(model);
                QueryHitsMaximumNumberValue  qhMaxNumValues = QueryHitsMaximumNumberValue(model);
          QueryHitsUnlimitedIndicator  qhUnLimind = new QueryHitsUnlimitedIndicator(model);
            XSelectionByElements  selecByEle = new XSelectionByElements(model);
                     processCond.set....();                         
                     qhMaxNumValues .set...();
               and so on
                    request.set....();
    wdcontext.nodeReqestFindX..bind(request);
      in the above during the values you will automatically get the set values .

  • Capture Request IP in Web Service

    Hi,
    Please let me know if we can able to capture the request IP inside web methods?
    I am aware we can able to do this in Servlet request using HttpServletRequest.getRemoteAddr()
    Is there is something similar to this in web service?
    Thanks for your time.
    Veera

    if you use JAX-WS use WebServiceContext:
    package wsdl;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.annotation.Resource;
    @WebService()
    public class MyWebService {
        @Resource
        private WebServiceContext wsContext;
        @WebMethod(operationName = "GetInfo")
        public Info GetInfo(
                @WebParam(name = "Id") int Id,
                @WebParam(name = "systemId") int systemId) {
            Info i = null;
            MessageContext mc = wsContext.getMessageContext();
            HttpServletRequest request = ((javax.servlet.http.HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST));       
            String ip = request.getRemoteAddr();
                /**code*/
            return i;
    }

  • AE 5.2 - Request Creation via Web Service

    Hi there,
    did anyone create a request via WebService requesting more than one system (applications) yet?
    We did not find a way of transferring multiple systems.
    Also there is no way to transfer the user validity dates. Is this really not possible?
    I've checked 5.3 Web Services and they look exactly the same (they've just been renamed, but no improvement regarding additional fields).
    Currently we are on 5.2 SP8 Patch1.
    Thanks,
    Daniela

    The GetSubmitRequest will accept:
    getSubmitRequest
    RequestDetailsData_1 (test.types.RequestDetailsData)  NULL
    priority (String)   SKIP
    location (String)   SKIP
    locale (String)   SKIP
    application (String)   SKIP
    userId (String)   SKIP
    company (String)   SKIP
    department (String)   SKIP
    emailAddress (String)   SKIP
    employeeType (String)   SKIP
    firstName (String)   SKIP
    lastName (String)   SKIP
    mgrEmailAddress (String)   SKIP
    mgrFirstName (String)   SKIP
    mgrId (String)   SKIP
    mgrLastName (String)   SKIP
    requestorEmailAddress (String)   SKIP
    requestorFirstName (String)   SKIP
    requestorId (String)   SKIP
    requestorLastName (String)   SKIP
    requestReason (String)   SKIP
    requestType (String)   SKIP
    roles (test.types.RoleData[])  SKIP
    element1 (test.types.RoleData)  NULL
    action (String)   SKIP
    company (String)   SKIP
    roleId (String)   SKIP
    sysId (String)   SKIP
    validFrom (java.util.GregorianCalendar)   SKIP
    validTo (java.util.GregorianCalendar)   SKIP
    telephone (String)   SKIP
    customField (test.types.CustomFieldsDTO[])  SKIP
    element1 (test.types.CustomFieldsDTO)  NULL
    name (String)   SKIP
    value (String)   SKIP
    Ankur
    GRC Consultant

  • Can't find where to update SOAP header request on a Web Service

    Hello,
    I am consuming a certain Web Service from a remote Server and succefully created a client proxy for it.
    This Web Service requires a String parameter (which is the licence key) to be inserted in the SOAP request header. I've searched at the client proxy I created under Virtual Interface, Web Service Definition and under Web Service Configuration but couldn't find an option which allows me to modify the SOAP header request.
    At this link:
    http://help.sap.com/saphelp_nw04/helpdata/EN/a2/99af4e693dee43a0519e029549647b/content.htm
    There is an explanation on how to transfer existing request parameters from the SOAP body to the SOAP header, but I want to add the header new parameter except the exsiting parameters the Web Service request expects.
    I can of course write the request myself but than I loose the whole wizard advantage...
    Can someone please tell me where can I find it?
    Roy

    Ralph Landry1, your link just sends them to the links I provided.
    If you have an iPod touch:
    For Windows: See iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows
    For Mac OS X: See iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X

  • Handling Java Web Service Exception in ABAP

    Hi
    I have created a web service in Java using NWDS.
    Which has a businessMethod which throws a Exception based on certain business logic.
    I have consumed this  Web Service Method using .NET Client.
    i am able to catch the Exception and get the Exceltion Message.
    But when i try to consume the same web service Method in ABAP,
    i am not getting the Exception Message .
    The Method call works fine.
    What am i missing here ?
    regards
    Rajendra

    Hi,
    Upon further investigation and comparison of the custom exception object (generated during consumer proxy creation for a CUSTOM web service) with a standard exception object(generated during consumer proxy creation for a STANDARD web service) I found that the sub-elements of the exception structure errorPart are not available in the custom exception object (and one of these sub-elements is the message text).
    Call Stack,ExceptionName and MessageText Elements are missing in the errorPart node of Exception
    Node. as seen in the ABAP Exception structure generated.
    Queries:
    1.       Are there any standards which need to be followed when coding exceptions in the Java web service for consumption in ABAP such that all sub-elements of the exception object are also created in ABAP during the proxy creation?
    2.       Can we get the Java code for a standard web service available in SAP Netweaver? Asking the same as the exception object created for the standard web service RoomABAPWS contains the sub-elements. Getting the Java code of the same will be very helpful in resolving the issue.
    Regards
    Rajendra

  • Excpetion handling in web services

    Hi!
    What happens when returning a custom exception in a web service, can I run instanceof on
    SOAPFaultException)ex.getCause();
    how do I know what kind of Exception it is?
    Thanks,
    I.

    instanceof, different catch blocks

  • Problem requesting WSDL from web service.

    Hello,
    I am rather new to creating web services, but I have been writing software for some time now. Please be gentle.
    I am writing a webservice "document first". I have a schema and an WSDL that were already written. I generated the code for a server from the WSDL and then wrote an implementing class from the interface it generated. All of my actual code compiles successfully and unit tests okay.
    I then looked at one of the examples included with JAX-WS to find out how to create the war to deploy to an application server (I am using Tomcat 5.5). After modifying the web.xml, build.xml, and sun-jaxws.xml files to work with my project structure I built and deployed the webservice.
    My problem is tomcat shows it is running, but when ever I try to point my client where I think the WSDL should be the "resource insn't available" I tried curl and just browsing there as well. What is the URI to retrieve the WSDL?
    Thanks for all your help in advance.
    Edited by: blindingillusion on Jun 5, 2008 1:10 PM

    Hi,
    I'm also new to web services. I created a hello world web service in MyEclipse using the wizard. How I pointed to the WSDL was by typing the following:
    http://localhost:8080/WebServiceProject/services/HelloWorldService?WSDL

  • Error while sending a rpc request to c# web service

    Hi,
    I am having problem using dii client, while sending a request to c# webservice. error follows
    run-client:
    [java] Endpoint address = http://localhost/webservice/default.asmx
    [java] expected 1 parameter(s) but received: 2. Expected parameters:
    [java] String_2:{http://www.w3.org/2001/XMLSchema}string Got parameters:
    [java] java.lang.String
    [java] java.lang.String
    [java] at com.sun.xml.rpc.encoding.soap.SOAPRequestSerializer.checkPara
    meterListLength(SOAPRequestSerializer.java:265)
    [java] at com.sun.xml.rpc.encoding.soap.SOAPRequestSerializer.doSeriali
    zeInstance(SOAPRequestSerializer.java:109)
    [java] at com.sun.xml.rpc.encoding.ObjectSerializerBase.serialize(Objec
    tSerializerBase.java:102)
    [java] at com.sun.xml.rpc.client.StreamingSender._writeRequest(Streamin
    gSender.java:473)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.
    java:59)
    [java] at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvok
    erImpl.java:61)
    [java] at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:35
    3)
    [java] at testmsws.HelloClient.main(Unknown Source)
    the c# webmethod requires 2 input parametes. I set 2 parameters to call and invoking method
    QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
    call.setReturnType(QNAME_TYPE_STRING);
    call.setOperationName(new QName(BODY_NAMESPACE_VALUE, "GetDetails"));
    call.addParameter("String_1", QNAME_TYPE_STRING, ParameterMode.IN);
    String[] params = { "02", "2004" };
    String result = (String)call.invoke(params);
    please give me a hand here if anybody know how to resolve this error
    thanks
    chandra

    Hi,
    I am having problem using dii client, while sending a
    request to c# webservice. error follows
    QName QNAME_TYPE_STRING = new QName(NS_XSD,
    "string");
    call.setReturnType(QNAME_TYPE_STRING);
    call.setOperationName(new QName(BODY_NAMESPACE_VALUE,
    "GetDetails"));
    call.addParameter("String_1", QNAME_TYPE_STRING,
    ParameterMode.IN);Do you need another call to addParameter here?
    String[] params = { "02", "2004" };
    String result = (String)call.invoke(params);

  • SOAP-Request to external Web Service Failed with GENERAL_ERROR PART UKNOWN

    Hi,
    i have generated a Consumer Proxy with the following WSDL File:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Mit XMLSpy v2010 rel. 2 (http://www.altova.com) von Ralph Rothe (n/a) bearbeitet -->
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://new.webservice.namespace" targetNamespace="http://new.webservice.namespace">
            <wsdl:types>
                   <xs:schema targetNamespace="http://new.webservice.namespace" elementFormDefault="qualified"/>
            </wsdl:types>
            <wsdl:message name="greetAnfrage">
                   <wsdl:part name="user" type="xs:string"/>
            </wsdl:message>
            <wsdl:message name="greetAntwort">
                   <wsdl:part name="return" type="xs:string"/>
            </wsdl:message>
            <wsdl:portType name="TestServerPortType">
                   <wsdl:operation name="getResults">
                           <wsdl:input message="tns:greetAnfrage"/>
                           <wsdl:output message="tns:greetAntwort"/>
                   </wsdl:operation>
            </wsdl:portType>
            <wsdl:binding name="TestServerBinding" type="tns:TestServerPortType">
                   <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
                   <wsdl:operation name="getResults">
                           <soap:operation soapAction="urn:#NewOperation" style="rpc"/>
                           <wsdl:input>
                                   <soap:body use="literal"/>
                           </wsdl:input>
                           <wsdl:output>
                                   <soap:body use="literal"/>
                           </wsdl:output>
                   </wsdl:operation>
            </wsdl:binding>
            <wsdl:service name="TestServerService">
                   <wsdl:port name="TestServerPort" binding="tns:TestServerBinding">
                           <soap:address location="http://92.79.135.41/soap/server.php"/>
                   </wsdl:port>
            </wsdl:service>
    </wsdl:definitions>
    If i testing the Error "GENERAL ERROR - PART UNKNOWN (NULL) occur. A payload trace with SRT_UTIL i show a correct response.

    Hi,
    i have generated a Consumer Proxy with the following WSDL File:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Mit XMLSpy v2010 rel. 2 (http://www.altova.com) von Ralph Rothe (n/a) bearbeitet -->
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://new.webservice.namespace" targetNamespace="http://new.webservice.namespace">
            <wsdl:types>
                   <xs:schema targetNamespace="http://new.webservice.namespace" elementFormDefault="qualified"/>
            </wsdl:types>
            <wsdl:message name="greetAnfrage">
                   <wsdl:part name="user" type="xs:string"/>
            </wsdl:message>
            <wsdl:message name="greetAntwort">
                   <wsdl:part name="return" type="xs:string"/>
            </wsdl:message>
            <wsdl:portType name="TestServerPortType">
                   <wsdl:operation name="getResults">
                           <wsdl:input message="tns:greetAnfrage"/>
                           <wsdl:output message="tns:greetAntwort"/>
                   </wsdl:operation>
            </wsdl:portType>
            <wsdl:binding name="TestServerBinding" type="tns:TestServerPortType">
                   <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
                   <wsdl:operation name="getResults">
                           <soap:operation soapAction="urn:#NewOperation" style="rpc"/>
                           <wsdl:input>
                                   <soap:body use="literal"/>
                           </wsdl:input>
                           <wsdl:output>
                                   <soap:body use="literal"/>
                           </wsdl:output>
                   </wsdl:operation>
            </wsdl:binding>
            <wsdl:service name="TestServerService">
                   <wsdl:port name="TestServerPort" binding="tns:TestServerBinding">
                           <soap:address location="http://92.79.135.41/soap/server.php"/>
                   </wsdl:port>
            </wsdl:service>
    </wsdl:definitions>
    If i testing the Error "GENERAL ERROR - PART UNKNOWN (NULL) occur. A payload trace with SRT_UTIL i show a correct response.

  • Exception handling in Web Services

    Hi all,
    I am exposing ejb2-based webservices and am unable to find a way to throw checked Exceptions.
    Could anyone provide resources about how to leverage SOAP/WSDL features of exception handling (i.e. wsdl:fault tag)?
    Thanks, regards
    Vincenzo

    Hi, thanks for replying
    actually on saphelp I found that supported Exceptions are:
    java.lang.Exception -> no fault generated
    java.rmi.RemoteException -> deploy refused with explicit error (RemoteException not allowed in ejb business method signature)
    java.lang.Throwable -> doesn't seem very appropriate to use such a root class
    Any suggestion?
    Thanks, regards
    Vincenzo

Maybe you are looking for

  • Problem with CC Menu Bar app (Mountain Lion)

    Howdy! So, i have this little problem with the CC menu bar app. I have it set to start when i login and everytime i (re)start my computer, the CC app window starts in the middle of the screen. I have to click in the menu bar icon for it to go to it's

  • I can't open my apps!

    Just purchased my 1st iPad, I wanted to load the apps that I already have on my iPhone, this went without a problem until I went to open the apps ! Nothing happens ! Has anyone else experienced this or am I doing something wrong ?

  • Document Size v Paper Size

    I am using Acrobat Pro 8 with a HP 3050 all in one. I am attempting to print two forms I created from scanned images (that have form fields) that are irregular sizes. I am only printing the form fields and not the scanned image, so my print setting i

  • SPA122 with 1.2.1 won't save certain DTMF settings

    Upon upgrading the SPA122 to firmware 1.2.1 I found that outbound DTMF tones were no longer being seen properly by remote systems.  Using the device web interface and changing the Line 1 "DTMF Tx Method" to "InBand" (using "Submit") successfully fixe

  • Unable to install Microsoft SQL Server 2008 R2

    It is showing error: Attempted to perform unauthorized operation. So was unable to install Database Engine Replication TITLE: Microsoft SQL Server 2008 R2 Setup The following error has occurred: Attempted to perform an unauthorized operation. Click '