I need call webservice send three parameter!!!

Hi I've a webserver and need pass two paramters to him, sample:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <addUsuario xmlns="http://tempuri.org/">
      <Chave>string</Chave>
      <AtivaGPS>int</AtivaGPS>
      <Foto>base64Binary</Foto>
    </addUsuario>
  </soap:Body>
</soap:Envelope>
PS.: The last parameter is a picture and I will send BLOB value.
But I never working with WS and Iphone, if someone can pass me an example I thank.

http://www.icodeblog.com/2008/11/03/iphone-programming-tutorial-intro-to-soap-we b-services/
Just create a http request and write the XML text to the request and post to the server.  This is exactly the same as doing a HTTP POST operation.

Similar Messages

  • Consecutive calls to: webservice .send()

    Hello forum,
    I'm new at Flex and ActionScript and I am in trouble with Web
    Service Consumption. In my application, I need to call several
    times to the same Web Service but with one different request
    parameter.
    The thing is, that once performed all the .send(), the
    resultHandler is called, but always with the last value I gave to
    that request parameter, so the result is always the same.
    I paste some of the code:
    employeeID = "00005001";
    wsGetEmployeeData.EmployeeGetdata.send();
    employeeID = "00005002";
    wsGetEmployeeData.EmployeeGetdata.send();
    private function
    resultGetEmployeeData(event:ResultEvent):void{
    xmlEmpData= wsGetEmployeeData.EmployeeGetdata.lastResult;
    <mx:WebService id="wsGetEmployeeData" wsdl="url">
    <mx:operation name="EmployeeGetdata"
    resultFormat="e4x"
    result="resultGetEmployeeData(event);"
    fault="faultGetEmployeeData(event);">
    <mx:request>
    <EmployeeId>{employeeID}</EmployeeId>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    Does anyone have an idea of how to call the Same Webservice?
    Thank you,
    toni

    It is my understanding that each WebService.send() will
    result in your
    result handler being called. It is being called twice, but
    you are
    probably only seeing the results of the second call as you
    are
    overwriting the xmlEmpData variable.
    I think that you can use AsyncTokens to track the different
    requests.
    Hope this is some help
    Martyn
    tonnimontana wrote:
    > Hello forum,
    >
    > I'm new at Flex and ActionScript and I am in trouble
    with Web Service
    > Consumption. In my application, I need to call several
    times to the same Web
    > Service but with one different request parameter.
    >
    > The thing is, that once performed all the .send(), the
    resultHandler is
    > called, but always with the last value I gave to that
    request parameter, so the
    > result is always the same.
    >
    > I paste some of the code:
    >
    > [..]
    > employeeID = "00005001";
    > wsGetEmployeeData.EmployeeGetdata.send();
    > employeeID = "00005002";
    > wsGetEmployeeData.EmployeeGetdata.send();
    > [..]
    > private function
    resultGetEmployeeData(event:ResultEvent):void{
    > xmlEmpData=
    wsGetEmployeeData.EmployeeGetdata.lastResult;
    > [..]
    > <mx:WebService id="wsGetEmployeeData" wsdl="url">
    > <mx:operation name="EmployeeGetdata"
    > resultFormat="e4x"
    > result="resultGetEmployeeData(event);"
    > fault="faultGetEmployeeData(event);">
    > <mx:request>
    > <EmployeeId>{employeeID}</EmployeeId>
    > </mx:request>
    > </mx:operation>
    > </mx:WebService>
    > [..]
    >
    > Does anyone have an idea of how to call the Same
    Webservice?
    >
    > Thank you,
    > toni
    >
    >

  • Consecutive webservice .send()

    Hello forum,
    I'm new at Flex and ActionScript and I am in trouble with Web
    Service Consumption. In my application, I need to call several
    times to the same Web Service but with one different request
    parameter.
    The thing is, that once performed all the .send(), the
    resultHandler is called, but always with the last value I gave to
    that request parameter, so the result is always the same.
    I paste some of the code:
    employeeID = "00005001";
    wsGetEmployeeData.EmployeeGetdata.send();
    employeeID = "00005002";
    wsGetEmployeeData.EmployeeGetdata.send();
    private function
    resultGetEmployeeData(event:ResultEvent):void{
    xmlEmpData= wsGetEmployeeData.EmployeeGetdata.lastResult;
    <mx:WebService id="wsGetEmployeeData" wsdl="url">
    <mx:operation name="EmployeeGetdata"
    resultFormat="e4x"
    result="resultGetEmployeeData(event);"
    fault="faultGetEmployeeData(event);">
    <mx:request>
    <EmployeeId>{employeeID}</EmployeeId>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    Does anyone have an idea of how to call the Same Webservice?
    Thank you,
    toni

    It is my understanding that each WebService.send() will
    result in your
    result handler being called. It is being called twice, but
    you are
    probably only seeing the results of the second call as you
    are
    overwriting the xmlEmpData variable.
    I think that you can use AsyncTokens to track the different
    requests.
    Hope this is some help
    Martyn
    tonnimontana wrote:
    > Hello forum,
    >
    > I'm new at Flex and ActionScript and I am in trouble
    with Web Service
    > Consumption. In my application, I need to call several
    times to the same Web
    > Service but with one different request parameter.
    >
    > The thing is, that once performed all the .send(), the
    resultHandler is
    > called, but always with the last value I gave to that
    request parameter, so the
    > result is always the same.
    >
    > I paste some of the code:
    >
    > [..]
    > employeeID = "00005001";
    > wsGetEmployeeData.EmployeeGetdata.send();
    > employeeID = "00005002";
    > wsGetEmployeeData.EmployeeGetdata.send();
    > [..]
    > private function
    resultGetEmployeeData(event:ResultEvent):void{
    > xmlEmpData=
    wsGetEmployeeData.EmployeeGetdata.lastResult;
    > [..]
    > <mx:WebService id="wsGetEmployeeData" wsdl="url">
    > <mx:operation name="EmployeeGetdata"
    > resultFormat="e4x"
    > result="resultGetEmployeeData(event);"
    > fault="faultGetEmployeeData(event);">
    > <mx:request>
    > <EmployeeId>{employeeID}</EmployeeId>
    > </mx:request>
    > </mx:operation>
    > </mx:WebService>
    > [..]
    >
    > Does anyone have an idea of how to call the Same
    Webservice?
    >
    > Thank you,
    > toni
    >
    >

  • How to call webservice using flex?

    Hello,
    i want to call webservice in flex.i tryied following code.but it is not giving correct response.what is wrong with this code?
    can anybody tell me ,how to call webservice in flex?
    Code:
    <mx:Script>
            <![CDATA[
    public function button1_clickHandler(event):void
         ws.returnRecord(para1,para2);//i am sending two parameter to returnRecord service here
    public function remotingCFCHandler(event:ResultEvent):void
    trace(event.result);
    ]]>
    </mx:Script>
    <mx:WebService
         id="ws"
         wsdl="http://localhost:8500/flexapp/returnusers.cfc?wsdl">
        <mx:operation name="returnRecords" resultFormat="object"
         fault="mx.controls.Alert.show(event.fault.faultString)"
         result="remotingCFCHandler(event)"/>
    <mx:Button label="Go" fontWeight="bold" click="button1_clickHandler(event)"/>

    Hello sir,
    i got following reply:
    <returnRecordResponse  xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <returnResult>Error_request</returnResult>
    </returnRecordResponse>
    but correct response is
    <returnRecordResponse  xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <returnResult>Success</returnResult>
    </returnRecordResponse>
    can you tell me correction in the code which i have put on the forum?or tell me other way to call webservice?

  • How can I send a parameter to a RFC function in c++ code (in eDM develop)?

    Hi,
    I am expanding Easy Document Management 6 SP14 via c++ code and I am trying to send a parameter value to a RFC function.
    I have succeeded calling a RFC function that requires no parameters.
    I have a pointer that points to the function, but I couldn't find a way to point to the parameter and send a value to it.
    I will appreciate any help (and code example if possible).
    Thanks,
    Eitam

    Hi guys,
    unfortunately I coulden't send parameters to RFC functions as you all described (get the message "This function is not yet implemented" when using Rfc->Field...), so I chose to follow SAP note 821930 which describes how to do something similar in ABAP code (I only need the selected document parameters).
    The problem is that in my code I open SAP gui (as I did in my c++ code: pRfc->InitFunction(L"MyRfcFunction",VARIANT_TRUE),
    but now I don't know how to send the connection parameters from easyDMS to my ABAP function that perform the "call transaction" method.
    my code:
    FUNCTION Z_EASYDMS_FUNCT_GET_LIST. (from note 821930)
    ""Local Interface:
    *" TABLES
    *" DOCUMENTS STRUCTURE BAPI_DOC_FILES2 OPTIONAL
    *" EXT_FUNCTIONS STRUCTURE ZEASYDMS_EXT_FUNC OPTIONAL
    ext_functions-functioncode = 'Z_MY_FUNCTION'.
    ext_functions-displayname = 'Add Doc To Project'.
    APPEND ext_functions TO ext_functions.
    ENDFUNCTION.
    FUNCTION z_easydms_funct_called. (from note 821930)
    ""Local Interface:
    *" IMPORTING
    *" VALUE(FUNCTIONCODE) LIKE SY-UCOMM OPTIONAL
    *" EXPORTING
    *" VALUE(RETURN) TYPE BAPIRET2
    *" TABLES
    *" DOCUMENTS STRUCTURE BAPI_DOC_FILES2 OPTIONAL
    IF functioncode = 'Z_MY_FUNCTION'.
    CALL FUNCTION 'Z_MY_FUNCTION'.
    ENDIF.
    ENDFUNCTION.
    FUNCTION Z_MY_FUNCTION.
    call transaction 'CJ20N'
    ENDFUNCTION.
    now nothing happens, but if I run first my old c++ code (from easyDMS context menu I choose what I've created in c++ which basically does "pRfc->InitFunction(L"MyRfcFunction",VARIANT_TRUE)" ) and then run the implementation above from the context menu it will work (the sap gui will open because it gets the connection parameters from the c++).
    Thanks for your help,
    Eitam

  • Related documents or links on how to call webservices from WDJ

    Hi all
    i need documents & links on how to call webservices from Webdynpro for Java.
    if anybody send the documents on sample scenarios on the same then it is the great help to me...
    Thanks
    Sunil

    Hi Sunil,
    May these links help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/f7/f289c67c759a41b570890c62a03519/frameset.htm
    http://help.sap.com/saphelp_nwce10/helpdata/en/64/0e0ffd314e44a593ec8b885a753d30/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm
    and  the below thread to call weservices in java.
    Re: How to call a web service from Java
    Regards,
    Supraja

  • Error when call webservice on servlet

    Hi All,
    I'm having a problem when calling webservice inside the servlet on the WebLogic environment.
    My code:
    * Webservice:
    package ws;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Date;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    @WebService
    public class getData {
    public getData() {
    super();
    @WebMethod
    public String getHello() {
    return "HELLO HELLO";
    private Connection getConn() throws NamingException, SQLException {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource)ic.lookup("jdbc/hnxwebsite");
    //System.out.println("POOL !!!!");
    Connection con = ds.getConnection();
    con.setAutoCommit(false);
    return con;
    @WebMethod
    public String getIndexData(@WebParam(name="param") String param) {
    StringBuffer sb = new StringBuffer();
    String sql =
    "Select * From idx_index_info iii where iii.index_code= ?";
    Connection con = null;
    PreparedStatement pstmt = null;
    ResultSet rs = null;
    try {
    con = getConn();
    pstmt = con.prepareStatement(sql);
    pstmt.setString(1, param);
    rs = pstmt.executeQuery();
    int columnCount = rs.getMetaData().getColumnCount();
    Object val;
    while (rs.next()) {
    for (int i = 1; i < columnCount; i++) {
    //System.out.println(i);
    val = rs.getObject(i);
    if (val != null)
    sb.append(val.toString() + "\n");
    } catch (SQLException e) {
    e.printStackTrace();
    } catch (NamingException e) {
    e.printStackTrace();
    } finally {
    try {
    if (rs != null)
    rs.close();
    if (pstmt != null)
    pstmt.close();
    if (con != null)
    con.close();
    } catch (Exception e) {
    e.printStackTrace();
    String str = sb.toString();
    int len = str.length();
    //System.out.println("LENGTH >>>>"+len);
    return str;
    public static void main(String[] arg) {
    Date date = new Date();
    System.out.println(date.toGMTString());
    getData gd = new getData();
    System.out.println(date.toGMTString());
    //System.out.println(gd.getIndexData("ACB"));
    * WebClient:
    package hnx;
    import java.util.Date;
    import java.util.Map;
    import javax.xml.namespace.QName;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPBodyElement;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.ws.BindingProvider;
    import javax.xml.ws.Dispatch;
    import javax.xml.ws.Service;
    import javax.xml.ws.WebServiceException;
    import javax.xml.ws.soap.SOAPBinding;
    public class wsClient {
    public wsClient() {
    super();
    public String procWeb() {
    String strmsg = null;
    try {
    QName serviceName = new QName("http://192.168.60.18:7001/","getDataService");
    // QName for Port As defined in wsdl.
    QName portName = new QName("http://192.168.60.18:7001/","getDataPort");
    // //Endpoint Address
    String endpointAddress = "http://192.168.60.18:7001/WsIndex/getDataPort?wsdl";
    // Create a dynamic Service instance
    Service service = Service.create(serviceName);
    service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING,
    endpointAddress);
    // Create a dispatch instance
    Dispatch<SOAPMessage> dispatch = service.createDispatch(portName,
    SOAPMessage.class, Service.Mode.MESSAGE);
    // Use Dispatch as BindingProvider
    BindingProvider bp = (BindingProvider) dispatch;
    // Optionally Configure RequestContext to send SOAPAction HTTP Header
    Map<String, Object> rc = bp.getRequestContext();
    rc.put(BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
    rc.put(BindingProvider.SOAPACTION_URI_PROPERTY, "http://ws/");
    // Obtain a preconfigured SAAJ MessageFactory
    MessageFactory factory = ((SOAPBinding) bp.getBinding())
    .getMessageFactory();
    // Create SOAPMessage Request
    SOAPMessage request = factory.createMessage();
    // Request Body
    SOAPBody body = request.getSOAPBody();
    // Compose the soap:Body payload
    QName payloadName = new QName("http://ws/", "getIndexData","ns1");
    SOAPBodyElement payload = body.addBodyElement(payloadName);
    SOAPElement message = payload.addChildElement( "param");
    message.addTextNode("HNX302");
    request.saveChanges();
    // Invoke the endpoint synchronously
    System.out.println(message);
    SOAPMessage reply = null;
    try { // Invoke Endpoint Operation and read response
    reply = dispatch.invoke(request);
    } catch (WebServiceException wse) {
    wse.printStackTrace();
    // process the reply
    SOAPBody bodyRes = reply.getSOAPBody();
    SOAPBodyElement nextSoapBodyElement = (SOAPBodyElement) bodyRes
    .getChildElements().next();
    SOAPElement soapElement = (SOAPElement) nextSoapBodyElement
    .getChildElements().next();
    strmsg = soapElement.getValue();
    System.out.println("AAA >>"+strmsg);
    } catch (Exception wse) {
    wse.printStackTrace();
    return strmsg;
    public static void main(String[] arg) {
    wsClient ws = new wsClient();
    Date date = new Date();
    System.out.println(date.toGMTString());
    System.out.println(ws.procWeb());
    System.out.println(date.toGMTString());
    * Servlet:
    package hnx;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import ws.GetData;
    import ws.GetDataPortClient;
    import ws.GetDataService;
    public class getIndex extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doPost(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    doGet(request, response);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    response.reset();
    response.flushBuffer();
    response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter();
    // GetDataService service = new GetDataService();
    // GetData getData = service.getGetDataPort();
    // String str = getData.getIndexData("HNX302");
    // int length = str.length();
    // response.setContentLength(length);
    wsClient ws = new wsClient();
    String str = ws.procWeb();
    try {
    out.println(str);
    } catch (Exception e) {
    e.printStackTrace();
    out.close();
    ERROR: >>>>>[Another instance of the application is running on the server.  JDeveloper redeploy the application.]
    [Application SClient stopped but not undeployed from Server Instance IntegratedWebLogicServer]
    [Running application SClient on Server Instance IntegratedWebLogicServer...]
    [03:41:48 PM] ---- Deployment started. ----
    [03:41:48 PM] Target platform is (Weblogic 10.3).
    [03:41:48 PM] Retrieving existing application information
    [03:41:48 PM] Running dependency analysis...
    [03:41:48 PM] Deploying 2 profiles...
    [03:41:48 PM] Wrote Web Application Module to C:\Users\W7\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs\SClient\sgetDataWebApp.war
    [03:41:48 PM] Wrote Enterprise Application Module to C:\Users\W7\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs\SClient
    [03:41:49 PM] Redeploying Application...
    [03:41:49 PM] Application Redeployed Successfully.
    [03:41:49 PM] The following URL context root(s) were defined and can be used as a starting point to test your application:
    [03:41:49 PM] http://192.168.9.100:7101/SClient
    [03:41:49 PM] Elapsed time for deployment: 1 second
    [03:41:49 PM] ---- Deployment finished. ----
    Run startup time: 1380 ms.
    [Application SClient deployed to Server Instance IntegratedWebLogicServer]
    Target URL -- http://127.0.0.1:7101/SClient/getindex
    [param: null]
    javax.xml.ws.WebServiceException: com.ctc.wstx.exc.WstxIOException: Exceeding stated content length of 228
         at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:117)
         at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
         at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:165)
         at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:101)
         at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:604)
         at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:563)
         at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:548)
         at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:445)
         at com.sun.xml.ws.client.Stub.process(Stub.java:248)
         at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:189)
         at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:215)
         at hnx.wsClient.procWeb(wsClient.java:75)
         at hnx.getIndex.doGet(getIndex.java:40)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: com.ctc.wstx.exc.WstxIOException: Exceeding stated content length of 228
         at com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1687)
         at com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.java:585)
         at com.sun.xml.ws.message.saaj.SAAJMessage.writeTo(SAAJMessage.java:396)
         at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:114)
         ... 29 more
    Caused by: java.net.ProtocolException: Exceeding stated content length of 228
         at weblogic.net.http.ContentLengthOutputStream.write(ContentLengthOutputStream.java:39)
         at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)
         at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
         at com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:194)
         at com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1685)
         ... 32 more
    java.lang.NullPointerException
         at hnx.wsClient.procWeb(wsClient.java:82)
         at hnx.getIndex.doGet(getIndex.java:40)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Can anyone help?
    Thanks in advance.
    LTThoi

    I'm no webservices/servlet expert , but can you check the obvious out here -
    javax.xml.ws.WebServiceException: com.ctc.wstx.exc.WstxIOException: Exceeding stated content length of 228
    at ......
    at hnx.wsClient.procWeb(wsClient.java:75)+ // check if you are passign something thats more than 228 chars
    at hnx.getIndex.doGet(getIndex.java:40)

  • Message body is empty, when calling wf_notification.send ,

    hi,
    i am sending a messages to 5 peoples, using wf_notification.send api.
    but the when i check the emails, mesage body is empty.
    prior to calling wf_notification.send Api,
    my message body has been generated by the message attribute of type document(plsqlclob), iam using wf_engine.setItemAttribute and the argument avalue is like this
    avalue=> 'plsql:koc_overtime_web_pkg02.show_mgr_message_TST/'||itemtype || ':' || ItemKey) for setting this message attribute(this will generate html)
    Shall i need to use any callback function in my send api.
    regards.
    zameer.

    If you are using WF_ENGINE.SetItemAttrText API, I see that you have a workflow item that is launched. In such a case you could just have a notification activity within the same process that will send the notification and the e-mail appropriately.
    Why do you use WF_NOTIFICATION.Send using an attribute value that is set from a Workflow item.
    Typically WF_NOTIFICATION.Send function is used to send a notification outside of a workflow process. Typically you would use a workflow message definition and corresponding message attribute definition and use the following code to send the notification.
    declare
        l_nid   number;
        l_user  varchar2(320) := '&1';
        l_begin_date date;
    begin
        l_nid := wf_notification.send(l_user, 'CS_MSGS', 'FYI_MESSAGE');
        wf_notification.setattrtext(l_nid, 'SENDER', 'Oracle Workflow Testing Mailer');
        wf_notification.setattrtext(l_nid, 'MESSAGE_TEXT', ' Message sent at '||to_char(sysdate,'DD-MON-RRRR HH24:MI:SS')||' DB server time');
        wf_notification.denormalize_notification(l_nid);
        commit;
    end;
    /As you can observe, I do not depend on any workflow item for any attribute information. Please note that in case if there is a requirement to depend on a workflow item, it is required that you need to pass a Callback function and Context to WF_NOTIFICATION.Send function in order for the workflow item attribute information to be copied over to notification attributes.

  • How to call webservice application using Browser

    Hi Everybody,
    Synchronous Scenario:  Calling XI Server using WebServices( Sending the Customer no through Soap and from there the receiver adapter RFC is picking that no and it will send it to R/3 using BAPI and getting the Customer Details from R/3.
    I followed the below two blogs and I created the complete scenario. And I deployed the ear file in WebAs in xi server.
    Now the question is how to run this program using the browser. That is how to call.
    Message Interface Name: CDWS_MI
    Service Name                : Soap_Service
    Namespace                   : urn:xiwebservicesusingwebdynpro.com
    Can you tell me how to call through the browser?
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3592---- [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    >1
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3593---- [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    >2
    Advance thanks,
    Abdullah Shaik.

    Hi,
    It's not clear to me what you did. Have you exposed an XI Message Interface through a Web Service? Or have you developed a Web Service in the other way? What is the "ear" that you said? Is an webdynpro app? If it is, I think your question would be properly answered at WebDynpro forum
    cheers!
    roberti

  • How to call webservice?

    Hello,
    i am trying to call webservice.i tryed  following code for calling webservices via actionscript.it is givind the response.but it is not giving correct response.
    is this correct way to call webservice?is there other way to call webservice?can anybody tell me,how to call webservice?
    <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”vertical” width=”420″ height=”380″ xmlns:net=”flash.net.*”>
    <mx:Script><![CDATA[
    import mx.rpc.soap.LoadEvent;
    import mx.rpc.AbstractOperation;
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.soap.Operation;
    import mx.rpc.soap.WebService;
    private var serviceURL:String = "http://localhost:7080/icon-ws/services";
    private var wsdlURL:String = "http://localhost:7080/icon-ws/bulkUpload.wsdl";
    private function callWS():void {
    var service:WebService = new WebService(serviceURL, serviceURL);
    service.wsdl = wsdlURL;
    service.loadWSDL();
    var oper:Operation = service.getOperation("BulkUpload") as Operation;
    oper.addEventListener("result", resultHandler);
    oper.addEventListener("fault", faultHandler);
    oper.send();
    public function resultHandler(event:ResultEvent):void {
    Alert.show("Result returned"+ event.result.toString());
    public function faultHandler(event:FaultEvent):void {
    Alert.show("fault: "+ event.toString());
    ]]></mx:Script>
    <mx:Button id=”selectBut” label=”CALL webservice” click=”callWS()”/>
    </mx:Application>

    sorry for my english. I expect you understand me...
    I do that extended sp 
    Code Block
    use atdb_main_test
    Declare @Object as Int;
    Declare @ResponseText as Varchar(8000);
    DECLARE @login VARCHAR(50);
    DECLARE @user_passwd VARCHAR(50)
    Exec master..sp_OACreate 'MSXML2.XMLHTTP', @Object OUT;
    Exec master..sp_OAMethod @Object, 'open', NULL, 'get', 'http://172.xx.xx.xx:wwww/account.asmx?op=CreateEquipementMacAddress', 'false'
    EXEC master..sp_OASetProperty @Object, 'user_login', @login
    EXEC master..sp_OASetProperty @Object, 'user_passwd', @user_passwd
    EXEC master..sp_OASetProperty @Object, 'p_nb_poste', 1
    EXEC master..sp_OASetProperty @Object, 'p_id_site', 91400
    EXEC master..sp_OASetProperty @Object, 'p_id_type_poste', 83
    EXEC master..sp_OASetProperty @Object, 'p_adresse_mac', null
    EXEC master..sp_OASetProperty @Object, 'p_num_serie', null
    EXEC master..sp_OASetProperty @Object, 'login', null
    EXEC master..sp_OASetProperty @Object, 'passwd', null
    EXEC master..sp_OASetProperty @Object, 'default_gateway', null
    EXEC master..sp_OASetProperty @Object, 'ip', null
    EXEC master..sp_OASetProperty @Object, 'bCreateIPPhone', 'false'
    EXEC master..sp_OASetProperty @Object, 'vlanId', 0
    Exec master..sp_OAMethod @Object, 'send'
    Exec master..sp_OAMethod @Object, 'responseText', @ResponseText OUTPUT
    Select @ResponseText as ResponseText
    Exec master..sp_OADestroy @Object
    I use a SQL server 2000 and don't do anything else.
    But it doesn't work
    I don't know what to do ...
    the message is (1 row affected) but no tupple is written in my db...
    can you help me please ?

  • How to call webservice using jdev9i

    Hi gurus and experts,
    i need to consume a webservice using oaf. with great effort finally i created stub using axis s/w.
    now i dont know how to use the stub in jdev.where to write the code and what to write.iam strucked :-( .
    since there were no sample tutorial about how to call webservice from jdev9i, iam struggling to make.iam jus a starter.
    and while googling i came to know that stubs can be created using jdev9i .but when i see new-->webservices--web service stub it is greyed out.
    i have 2 questions now:
    1)if stub created using axis can it be used in jdev9i? if yes ,please tell me how? any tutorial links also helps me.
    2)if the stubs should be created only by jdev9i so that webservices can be called using jdev,then please guide me how to make it.
    i need some helping hands from u guys.
    Thanks a lot
    Edited by: 881533 on Oct 25, 2011 2:34 AM
    Edited by: 881533 on Oct 25, 2011 2:37 AM

    Hello sir,
    i got following reply:
    <returnRecordResponse  xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <returnResult>Error_request</returnResult>
    </returnRecordResponse>
    but correct response is
    <returnRecordResponse  xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <returnResult>Success</returnResult>
    </returnRecordResponse>
    can you tell me correction in the code which i have put on the forum?or tell me other way to call webservice?

  • I cannot use  my iPhone to make calls or send text messages after upgrading to ios 7

    I just upgraded to ios7 and I can no longer  make calls or send text messages.  The screens seem to be locking.   Does anyone know what I can do to fix it?

    My wife is having the exact same issue after updating to the new iOS 8.1.1 and we've tried all the same steps even restoring the phone as a new phone. We've contacted our service provider and they've told us to go to apple to potentially "remove" her serial number from their servers to allow it to work properly on the service we have. We are desperate as purchasing a new phone right now is not an option and she desperately needs her phone for work and life.
    Iphone 5 8.1.1

  • Error in calling webservice in XI

    Hi All,
    We are facing the folllowing error in calling a Webservice in XI from XML Spy.
    QOS = BestEffort
    We are getting the following response
    <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
    <context>XIAdapter</context>
    <code>DeliveryException</code>
    <text><![CDATA[
    com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapter:SYSTEM_FAILURE_INTERNAL:
         at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:451)
         at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:125)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:831)
         at com.sap.engine.frame.core.thread.Task.run(Task.java(Compiled Code))
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java(Compiled Code))
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
              ]]></text>
    </s:SystemError>
    In SXMB_MONI the error is
    <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="BPE_ADAPTER">SYSTEM_FAILURE_INTERNAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>An internal error has occurred</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    In adapter monitoring SOAP adapters are having GREEN status.
    The scenarios are of the form Weservice <=> XI(BPM) <==> (Multiple External Systems)
    In SXI_CACHE the Integraton Process RETURN CODE is 99 for all. 
    (We have RETURN CODE is 99 for many of the Integraton Processes which are used in Plain-Adapter based scenarios and all of them are working fine)
    We are facing this problem for all WebService(Sender) based interfaces.
    We are on XI QAS and all these are working sucessfully on XIDEV.
    XI Level is - 3.0 SP15
    Any help is appreciated.
    Thanks in Advance,
    Regards,
    Chemmanz

    Hi,
    Looks like there is some kind of error when the message was received by the bpm or when the message was being sent out of the bpm.
    In the monitor, corresponding to your message, click on PE. You could find any error in the bpm there.
    Regards,
    Smitha.

  • My iPhone 4s has been very tempremental with making calls and sending SMS. It seems to work better if my 3G is on all the time. Anyone else experiencing this?

    My iPhone 4s is very tempremental. One day it's fine, the next I find it hasn't recieved calls or texts that have been sent to me and it won't make calls or send texts either! I've found that if 3G is turned on it seems to help but do I really need to have 3G on all the time?

    How are you turning off 3G? If you are putting it in Airplane mode this is why you haven't received any calls or texts, they both run on voice data which you turned off.

  • VBA Call WebServices: How to handle a returned empty complex array?

    Hi,
        These days I got a task to call a web service by VBA in Excel, but faced the following two problems about empty complex array.
    <b>1. When the returned value of a web service contains empty array, it crashed with "SoapMapper: array dimensions do not match definition"</b>
        Another guy faced the same question with me, detail at http://www.topxml.com/SOAPToolkit/rn-246726_SoapMapper-array-dimensions-do-not-match-definition.aspx
    <b>2. When the input parameter contains empty array, it crashed with "Operation Not Supported"</b>
    Dim arrayStudent() As Student
    Call webservice.DoThings( arrayStudent )

    Hello,
    we have faced the same Problem in our PHP / Typo3 solution. We used this switch:
    $object_array = array();
    if (is_object($salesorders->SALES_ORDERS_HEAD->item)) {
         $object_array[] = $salesorders->SALES_ORDERS_HEAD->item;
    } else {
         $object_array = $salesorders->SALES_ORDERS_HEAD->item;
    Best regards
    Gregor

Maybe you are looking for

  • FCE, Sony HD Camera, Family Video Editing, & Burning (HD?)DVD

    Ok. Here goes ... I am a new iMac enthusiast who has "seen the light". That being said, I will be purchasing my first iMac in 30 days and I am hopefull that my expectation(s) do not fall flat because they are unrealistic. The only expectation in whic

  • 6585 with ddr400 problems

    My MSI board wont boot with TwinMos 3200 DDR 400 Cas 2.5 RAM. I can however underclock the RAM to about 350MHz and get the system to boot. I've been reading posts similar to this and people came to the same kind of conclusion. Will MSI/Can MSI do som

  • ZEN firmware 1.20.02 - Was that

    There's tons of features to add and almost as much to fix, so don't stop updating it now!Message Edited by m99__ on 02-24-200807:4 AM

  • How to export the forms to java

    I like to made the forms available in web so i need to export the forms design to java. How to implement it.

  • Redirecting to France.

    Hi, This is the first time that I use this Iphoto to create a book. Now that I have done everything , When I purchase my book it redirect me to Apple France. But I'm from Canada and I do not want to buy from France, what do I do wrong ? Also, what is