Complex xml types in a web service request

Hello,
I'm a newcomer to APEX and wondered how to create complex data types in a web service reference, and how to address these fields from a page item type. I have a wsdl containing nested lists of strings and don't know how to solve this in APEX, can anyone help me?

hi Jonjeao,
i too searching the steps and refrerences for my project.
i found the solution from
http://www.oracle.com/technology/products/database/application_express/pdf/Using_Oracle_Application_Express_to_Interact_with_XML-RPC_Style_Web_Services.pdf
please try your url with xml to web service.
Thanks
~Logaa
Edited by: Logaa on Apr 2, 2009 1:35 AM

Similar Messages

  • How to reference complex data type when consuming web services in WAS 620?

    In WAS 620, I tried to consume a web service in ABAP. I was successful when the web service returned one or more simple data type. But when the web service is changed to return a complex data type (eg. a structure with 3 elements), the call to the web service did not return anything.
    Do any of you know how to reference the individual element in the structure of an output parameter in a web service? I use the add_parameter method of the CSoapDocument class to identify the output parameters.
    Here is part of the WSDL file:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="urn:sap-com:document:sap:rfc:functions" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="urn:sap-com:document:sap:rfc:functions">
    - <types>
    - <xsd:schema targetNamespace="urn:sap-com:document:sap:rfc:functions">
    - <xsd:element name="Z_SRM_SOAP_TEST_COMPLEX">
    - <xsd:complexType>
    - <xsd:all>
    - <xsd:element name="INTEXT">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
      </xsd:all>
      </xsd:complexType>
      </xsd:element>
    - <xsd:element name="Z_SRM_SOAP_TEST_COMPLEX.Response">
    - <xsd:complexType>
    - <xsd:all>
      <xsd:element name="OUTTEXT" type="s0:ZSRM_TEST_STRUCT" />
      </xsd:all>
      </xsd:complexType>
      </xsd:element>
    - <xsd:complexType name="ZSRM_TEST_STRUCT">
    - <xsd:sequence>
    - <xsd:element name="ELEMENT1" minOccurs="0">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
    - <xsd:element name="ELEMENT2" minOccurs="0">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
    - <xsd:element name="ELEMENT3" minOccurs="0">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:schema>
      </types>

    Hi,
      [email protected] is my id and one more thing u by looking at the wsdl file u can know what al the parameters we have to give to the webservice so try it out also.
    Regards,
    Sirisha.

  • Consuming a web service using UTL_HTTP, Complex XML types

    this is the first time i have encountered a complex type calling a web service from PLSQL. i have sucsessfully called other methods from this same web service so i know its working.
    this is what i have to pass in:
    <xs:complexType name="AddJobRequestStructure">
    <xs:sequence>
    <xs:element name="AffectedUnits" type="ro:UnitIdentificationStructureArray" />
    <xs:element name="ServiceCode" type="xs:string" />
    <xs:element name="RecordTypeCode" type="xs:string" />
    <xs:element name="MultipleDescriptionCodes" type="ro:DescriptionSeverityStructureArray" />
    </xs:sequence>
    </xs:complexType>
    concentraiting on the parameter "AffectedUnits" type =
    <xs:complexType name="UnitIdentificationStructure">
    <xs:sequence>
    <xs:element name="UnitID" type="xs:string" />
    <xs:element name="StreetID" type="xs:string" />
    <xs:element name="UniqueStreetReferenceNumber" type="xs:string" />
    <xs:element name="UnitNumber" type="xs:string" />
    <xs:element name="Location" type="xs:string" />
    <xs:element name="PAON" type="ro:AONstructure" />
    <xs:element name="Easting" type="xs:double" />
    <xs:element name="Northing" type="xs:double" />
    </xs:sequence>
    </xs:complexType>
    for simple types i build the XML such as:
    request.body := request.body||'<ServiceCode xsi:type="xs:string">'||some_value||'</ServiceCode>';
    (request being a type that holds the namespace,method,body and envelope tag)
    just to re-itterate, i have other web service methods (from the same web service) working this way, however im not sure where to start with this complex type, so any help would be great
    Cheers.

    Thanks for the response, I’m not familiar with XML or web services so I appreciate the input. There is indeed an intermediate type. The web service documentation I have does state that the complex type can take multiple records, however we will only ever be passing one, it was this mention of an array that threw me, i asumed the array was the complex type - rather than there being an array of complext types for the handling of multiple records.
    <xs:complexType name="UnitIdentificationStructureArray">
    <xs:complexContent>
    <xs:restriction base="soapenc:Array">
    <xs:sequence />
    <xs:attribute ref="soapenc:arrayType" n1:arrayType="ro:UnitIdentificationStructure[]" xmlns:n1="http://schemas.xmlsoap.org/wsdl/" />
    </xs:restriction>
    </xs:complexContent>
    </xs:complexType>
    I assumed I had to pass each element of the complex type in separately and then reference this somehow in the parent, but it sound like, from what you say, I can just pass in XML containing the data in the correct structure
    Could you give me a basic example of how this XML fragment might look?
    Apologies for the lack of understanding - XML is failry new to me, this is as far as i have got
    Cheers

  • How to bind list data to XML Web service request

    How do I bind specific columns in a DataGrid to the Web
    service request? I'm having trouble finding any documentation that
    addresses that specific pattern, i.e. sending a complex list to the
    server via a Flex Web service send() command. I'm fairly new to
    Flex programming and don't know if what I want to do is possible.
    Here what I've been able to do so far.
    1. Using a Web service called a service on the server and
    retrieved a complex list.
    2. Poplulated a DataGrid with the result
    3. The user has selected multiple rows from the DataGrid
    using a checkbox column
    4. The user pressed a button that calls a Web service send().
    This Web service should only send data from only two columns and
    only for those rows the user has checked.
    5. I can loop over the DataGrid and find the selected rows
    and put them in another ArrayCollection called 'selectedRows'.
    The issue is that I don't know how to bind 'selectedRows' to
    the Web service. Right now I'm reading up on "Working with XML" in
    the Programming with ActionScript 3.0 chapter. But I'm just fishing
    here. No bites yet.

    Don't bind. Build the request object programatically, as you
    are doing with your selectedRows AC, and send(myObject) that.
    Tracy

  • Binding ADF UI to a complex XML Type – Development Productivity, State Mgmt

    Binding ADF UI to a complex Web Service – Development Productivity, Managing State, Etc.
    For those scenarios when ADF UI has to be bound to a complex XML type, it seems that the direction taken by the ADF development team was to generate data-controls that map to complex XML types.
    The major problem with this approach is the fact that application server does not manage state. For example, If application has to submit a purchase order to a web service then application server has to manage the shopping card state until its ready to be submitted.
    In some previous forum threads it had been suggested that using generated data-controls is a “quick and dirty” solution for accessing web services and that a proper solution is to use generated Java Proxy Interface.
    That implies many manually constructed entity objects, associations and overridden doDML methods, which is far less productive compared to entity objects generated from a database schema.
    Suggestion and a Question for the ADF development team
    From the logical model standpoint, there is no difference in between the XML schema and DB schema. Therefore, it is possible to generate entity objects and associations for XML Types of XML schema the same way it’s done for tables of Database schema. The only difference is serialization of CRUD operations on entity objects.
    One way to handle this is:
    -     Generate Application Module for a complex XML type. This application module should have methods for marshaling to/from corresponding XML type.
    -     Generate entity object for each subtype within the complex XML type. In case of nested subtypes, generate association to a parent type.
    -     Generate data control with actions that are bound to web service operations and code that serializes request message from corresponding AM and de-serializes response message to corresponding AM.
    This way, ADF would offer the same productivity for the SOA development as one its currently offering for the ORM development.
    Until the time when something like this is available, what would be the best approach for binding ADF UI to web services?
    Feedback is greatly appreciated.
    Boro Petrovic
    Edited by: wds12518 on Jan 25, 2010 11:49 AM

    We have similar issues as our big portion of the UI is based on WS. We found that there is no easy way to map entity object structure to complex XML type (one EO can based on one flat type or domain can't be bound to UI directly). Oracle PMs, is there any better solution or future plans to address this issue?

  • Web Service Request Failed

    Hello,
    Errors in the EE 4 with RedHat ES 3.
    Web Service Request Failed
    The following fault was returned from the web service call:
    Code HTTP
    String (404)/axis/services/rpc/webtopsession
    ------ log -----
    Starting service Tomcat-Standalone
    Apache Tomcat/4.1.29
    Apr 15, 2005 12:26:03 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    Apr 15, 2005 12:26:03 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/86 config=null
    AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (404)/axis/services/rpc/webtopsession
    faultActor:
    faultNode:
    faultDetail:
    {}string: return code: 404
    <html><head><title>Apache Tomcat/4.1.29 - Error
    report</title><STYLE><!--H1{font-family :
    sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
    H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color :
    #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color :
    black;background-color : white;} B{color : white;background-color :
    #0086b2;} HR{color : #0086b2;} --></STYLE>
    </head><body><h1>HTTP Status 404 -
    /axis/services/rpc/webtopsession</h1><HR size="1"
    noshade><p><b>type</b> Status
    report</p><p><b>message</b>
    <u>/axis/services/rpc/webtopsession</u></p><p><b>description</b>
    <u>The requested resource (/axis/services/rpc/webtopsession) is not
    available.</u></p><HR size="1"
    noshade><h3>Apache
    Tomcat/4.1.29</h3></body></html>
    (404)/axis/services/rpc/webtopsession
    at
    org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
    at
    org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:2248)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at
    com.tarantella.tta.webservices.client.apis.apache.BaseRequest.callServiceWork(BaseRequest.java:316)
    at
    com.tarantella.tta.webservices.client.apis.apache.BaseRequest.callService(BaseRequest.java:213)
    at
    com.tarantella.tta.webservices.client.apis.apache.BaseRequest.callService(BaseRequest.java:205)
    at
    com.tarantella.tta.webservices.client.apis.apache.WebtopSessionRequest.startSession(WebtopSessionRequest.java:62)
    at
    com.tarantella.tta.webservices.client.views.SessionBean.startSession(SessionBean.java:545)
    at
    org.apache.jsp.sessionmanager_jsp.createNewSession(sessionmanager_jsp.java:276)
    at
    org.apache.jsp.sessionmanager_jsp.joinSessionByClientId(sessionmanager_jsp.java:236)
    at
    org.apache.jsp.sessionmanager_jsp._jspService(sessionmanager_jsp.java:619)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
    at
    org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
    at
    org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
    at
    org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:483)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    com.tarantella.tta.webservices.valves.InputFilter.invoke(InputFilter.java:74)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
    at
    org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
    at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
    at java.lang.Thread.run(Thread.java:534)

    Hello,
    We have same problem on SGD4.2 on Solaris 10 with IE HTML Client.
    Do you solve it ?
    How ?
    Please help.
    Regards.

  • Error by sending a Web Service request

    Hi,
    we generated a WSDL from an outbound-interface and build a web application with it. When we send a Web Service request to SAP-XI from our Web Dynpro client application, we get an error "CALL_CONSUMER_ERROR" (of category "XI_J2EE_MESSAGING_SYSTEM"). We find the following entry in the message-log of the adapter engine:
    Error: Return of synchronous errormessage to the calling application: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.RuntimeException: Error while silently connecting: org.w3c.www.protocol.http.HttpException: iaik.security.ssl.SSLException: Server certificate rejected by ChainVerifier.
    Error: The Transmission of the message with https://hpsaps01.inveos.com:8001/sap/xi/engine?type=entry failed, because: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.RuntimeException: Error while silently connecting: org.w3c.www.protocol.http.HttpException: iaik.security.ssl.SSLException: Server certificate rejected by ChainVerifier
    does anybody know, how to solve this problem?
    Greetings
    Hildegard

    Hi Stefan,
    correct certificates are established in the meantime and the error-message in the adapterlog has changed. The errorcode still remains "CALL_CONSUMER_ERROR" of category "XI_J2EE_MESSAGING_SYSTEM".
    Adapter-log:
    Error: Return of synchronous errormessage to the calling application: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.RuntimeException: Error while silently connecting: org.w3c.www.protocol.http.HttpException: java.net.ConnectException: Connection refused.
    Error: The Transmission of the message with https://hpsaps01.inveos.com:8001/sap/xi/engine?type=entry failed, because: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.RuntimeException: Error while silently connecting: org.w3c.www.protocol.http.HttpException: java.net.ConnectException: Connection refused
    Are there missing any more permissions or is this another error in the configuration?
    Regards
    Hildegard

  • HTTP Web Service Request

    Using C#, I am trying to access my OnDemand account using https POST web service requests. Since I am new to this whole Siebel WS thing, I decided to try the easiest WS request: CurrentUser.
    My request URL is
    https://secure-ausomxaxa.crmondemand.com/Services/Integration/CurrentUser;jsessionid=xxxxxxx
    The SOAP payload is:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <CurrentUserWS_CurrentUserQueryPage_Input xmlns="urn:crmondemand/ws/currentuser">
    <ListOfCurrentUser xmlns="urn:/crmondemand/xml/currentuser">
    <CurrentUser>
    </CurrentUser>
    </ListOfCurrentUser>
    </CurrentUserWS_CurrentUserQueryPage_Input>
    </soap:Body>
    </soap:Envelope>
    When I send this request, I get an error status 400. Bad Request.
    Thanks

    Try adding a forward slash at the end of "urn:crmondemand/ws/currentuser". I think that's how it is in the generic WSDL.
    Also, if you don't specify any fields between <CurrentUser> and </CurrentUser>, you won't get any fields back (once your request succeeds, that'll be your next problem).
    Also, if you get HTTP status 400, reading the body of the HTTP response will get you a long way towards understanding what's wrong. It should contain a detailed error message.

  • Help needed: Handling web service requests from a J2SE application

    I want to write an J2SE application that is able to receive and parse web service requests. I want the application to, when started, start listen for incoming requests on a specific port.
    So far, I have embedded Apache Tomcat and Apache Axis in my application so that they parse the incoming requests and pass them on to my application logic.
    This seems like a very cumbersome way of doing it. I have included an almost full J2EE server in my application just to be able to parse web service requests.
    Is there an easier way? What technologies could I use? Any help would be greatly appreciated.

    Thanks for the help!
    It seems awfully complex though. Couldn't one just
    listen to incoming requests on a socket and use some
    good tool to parse them?
    Of course you could. One of the projects in that list is a 1 class java file. It could listen for requests, then you could parse the posted SOAP messages using JAXP and pass the requests on to your application. This will require a good understanding of SOAP however, and it may end up taking more time than simply using the JWSDP with a slightly beefier server.
    Given that there is only a handful carefully
    specified requests that the application needs to be
    able to respond to it seems overkill to include a
    full servlet enabled server...

  • The format of XML file returned from web service

    Hi everyone,
    My web service (build in asp.net 2.0 with C#) returns the
    following xml file which is not what I want.
    <Root>
    <Root2>
    <Person> .... </Person>
    <Person> .... </Person>
    <Person> .... </Person>
    </Root2>
    </Root>
    But I want my web service to return the following xml file.
    How can I get the following xml file instead of the above xml file
    ? Thanks.
    <Root>
    <Person> .... </Person>
    <Person> .... </Person>
    <Person> .... </Person>
    </Root>

    Thanks for everyone's reply!
    Sorry, I don't know where to set resultFormat="e4x". Below is
    my code. And LINE 111 gives error. And the error message is below.
    And the xml returned from the web service is below.
    Error: Error #2093: The Proxy class does not implement
    getDescendants. It must be overridden by a subclass.
    at Error$/throwError()
    at flash.utils::Proxy/
    http://www.adobe.com/2006/actionscript/flash/proxy::getDescendants()
    at
    LogIn/loginHandler()[P:\JIMMY-FLEX\Flex_LogIn\LogIn.mxml:58]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.rpc::AbstractService/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\A bstractService.as:232]
    at mx.rpc::AbstractOperation/
    http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.0.x\frameworks\pro jects\rpc\src\mx\rpc\AbstractOperation.as:193
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\3.0.x\frameworks\projec ts\rpc\src\mx\rpc\AbstractInvoker.as:191
    at
    mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:4 1]
    at
    mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:74]
    at
    DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\ messaging\channels\DirectHTTPChannel.as:381]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%" height="100%" xmlns:ns1="*">
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    namespace FaciNS = "
    http://FaciNet.com/";
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.soap.WebService;
    //public var __xmlResult:XML;
    public var ws:WebService;
    public function Log_In(UN:String, PW:String):void
    ws.Login(UN, PW);
    public function getLoginData():void {
    loadWSDL();
    Log_In(UN.text, PW.text);
    public function loadWSDL():void
    ws = new mx.rpc.soap.WebService();
    ws.wsdl = "
    http://localhost:50779/VS2008_LogIn/Service.asmx?wsdl"
    ws.useProxy = false;
    ws.addEventListener("fault", faultHandler);
    ws.addEventListener("result", loginHandler);
    ws.loadWSDL();
    public function loginHandler(e:ResultEvent):void {
    var wkSouID:String = e.result[0]..SouID; // LINE 111
    trace(wkSouID);
    public function faultHandler(event:FaultEvent):void
    dispatchEvent(new Event("Error"));
    public function checkUser(UName:String, PWord:String):void {
    getLoginData();
    ]]>
    </mx:Script>
    <mx:Panel id="loginPanel" horizontalScrollPolicy="off"
    verticalScrollPolicy="off" width="400" height="200" x="97"
    y="66">
    <mx:Form id="loginForm" width="100%" height="100%">
    <mx:FormItem label="Username:" color="red">
    <mx:TextInput id="UN" />
    </mx:FormItem>
    <mx:FormItem label="Password:" color="red">
    <mx:TextInput id="PW"/>
    </mx:FormItem>
    </mx:Form>
    <mx:ControlBar>
    <mx:Spacer width="100%" id="spacer1"/>
    <mx:Button label="Login" id="loginButton"
    click="checkUser(UN.text, PW.text)" />
    </mx:ControlBar>
    </mx:Panel>
    </mx:Canvas>
    <?xml version="1.0" encoding="utf-8" ?>
    - <ArrayOfLogIn xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns="
    http://tempuri.org/">
    - <LogIn>
    <SouID>2</SouID>
    <LogInUserID>3</LogInUserID>
    <LogInUserName>samlam</LogInUserName>
    <Password>abc123</Password>
    <DialectID>4</DialectID>
    <CreatedByUserID>5</CreatedByUserID>
    <UpdatedByUserID>5</UpdatedByUserID>
    </LogIn>
    - <LogIn>
    <SouID>3</SouID>
    <LogInUserID>4</LogInUserID>
    <LogInUserName>samlam</LogInUserName>
    <Password>abc123</Password>
    <DialectID>4</DialectID>
    <CreatedByUserID>5</CreatedByUserID>
    <UpdatedByUserID>5</UpdatedByUserID>
    </LogIn>
    </ArrayOfLogIn>

  • Error in testing XML query result set web service

    Hi
    I was trying to test a <b>XML query result set web service</b> in BW system with tcode wsadmin but getting error like
    <b>Cannot download WSDL from http://ibmbtsb02.megacenter.de.ibm.com:8070/sap/bw/xml/soap/queyview?sap-client=001&wsdl=1.1&mode=sap_wsdl: F:\usr\sap\W70\DVEBMGS70\j2ee\cluster\server0\apps\sap.com\com.sap.engine.services.webservices.tool\servlet_jsp\wsnavigator\root\WEB-INF\temp\ws1139464945296\wsdls\wsdlroot.wsdl (The system cannot find the path specified)</b>
    I had tried it first time few days ago and was able to test it successfully with the same configuration settings.
    Could any one of you please provide any suggestion on this?
    Thanks in advance
    Sudip

    hi
    check this links it may help u.
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/e3072e65f04445a010847aa970b68b/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/3bfc3f8fc2c542e10000000a1550b0/frameset.htm
    Regards,
    Manoseelan

  • Web service request ....one db connection per session OR all share one...

    in servlet i use
    public void init(ServletConfig config) throws ServletException { }
    so it only gets the db connection once per session
    now that I am working on a web service....im not sure how to do something similiar
    I want to either have all request coming in to use the same ONE connection OR maybe one created per session
    I have way too many web service requests and it creates too many jdbc connections....what can i do to pervent this?
    I dont care if they have to wait longer;
    I just want to cut down the number of jdbc connections to 1 to 2
    any help appreciated, thanks

    You want to use a connection pool. If you just use one connection, your web users are likely to be waiting on the availabilty of the connection. A pool will let you set whatever maximum you want; 1 or 100...
    There are a number of database connection pooling options. One of the morepopular is DBCP, part of the Apache project, which is free and open source.
    http://jakarta.apache.org/commons/dbcp/
    There are other such "drop in" poolers and some database vendors are now supplying connection pooling in their drivers.

  • [Web Service] request arg is array

    Dear all,
    I insert multi-node in web service request.
    Context in EduCusController:
    Request_EducationWSViDocument_createEducationList
    +arg1(0..n)
      -majorField
    In viewController
    IArg1Node DestinationNode =wdThis.wdGetEduCusController().wdGetContext().nodeArg1();
    for (int i = 0; i < 5; i++) {
    ComplexType_EducationJB newejb=new ComplexType_EducationJB();
    IArg1Element newElement =DestinationNode.createArg1Element(newejb);
    newejb.setMajorField(     i);
    DestinationNode.addElement(newElement);
    then i run
    <b>executeRequest_EducationWSViDocument_createEducationList( );</b>
    it have Exception  :  <b>Exception in method CreateEducationList ~</b>
    Can anyone help me.

    HI Naidu,
    how can i do to get complete more stack trace of exception.
    public void executeRequest_EducationWSViDocument_createEducationList( )
        //@@begin executeRequest_EducationWSViDocument_createEducationList()
              //$$begin Service Controller(1148767839)
              IWDMessageManager manager = wdComponentAPI.getMessageManager();
              try {
                   wdContext
                        .currentRequest_EducationWSViDocument_createEducationListElement()
                        .modelObject()
                        ._setHTTPDestinationName("Education_WS");
                   wdContext
                        .currentRequest_EducationWSViDocument_createEducationListElement()
                        .modelObject()
                        .execute();
                   wdContext.nodeResponseResult().invalidate();
              } catch (Exception e) {
                   e.printStackTrace();
                   manager.reportException(e.getMessage(), false);
              //$$end
        //@@end
    PS. i use  Web Services Navigator insert multi-node, and it run OK.

  • Automatically send web service request on restart

    Hi,
    Is it possible to send a web service request (or invoke a web method) on restart of a web application that is contained within oc4j.
    I want to try and improve the performance of my web service sine it takes a long time to execute the first method call
    Thanks in Advance

    One possibility would be to use a ServletContextListener:
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28959/listener.htm#BABFCGDD

  • My problem about SGD--  Web Service Request Failed

    Web Service Request Failed
    The following fault was returned from the web service call:
    Code          Server.NoService
    String          The AXIS engine could not find a target service to invoke! targetService is rpc/webtopsession

    my SGD's viasion is 4.3.15
    my plam is suse linux

Maybe you are looking for

  • Resetting this reverse document is not possible - FBRA

    Hi, I'm trying to reset the cleared items with Tcode FBRA also system is throwing error like below ================================================================================================== Resetting this reverse document is not possible Mess

  • CAN message availabili​ty

    I am currently writing an application (LV8.2) for battery pack testing. The application checks communication with a BMI, and communication to the battery is over CAN. I use two CAN cards on the test PC and the Channel API subVIs to read and write fro

  • Maps doesn't show the correct position - Asha 311

    Nokia asha 311 latest update My maps don't show the correct position. Why? Moderator's Note: The subject was amended as the post was moved to the correct board.

  • BW Field level Autorizations are not working in the WEBI Reports

    Dear All, 1. I have created Authorization roles with Infoobjects Authorization Objects. 2. In Bex Query Authoizations are working on the Infoobjects like for Ex: For USER1 I have given Company code = 1000 & User 2 I have given authorization for 1100.

  • Photos gone after upgrading to 5

    Just upgraded to the 5, all syncs went fine, except for photos. Not there. Prior 4 was backed up to iCloud as well as iTunes. Are these photos gone forever or can I recover them somehow?