Consuming Webservice in ESB from Flex

First thing I would suggest is getting rid of the MXML tags and use the all actionscript method shown on my blog post, SAP Web Services in Flex Builder(http://blog.danmcweeney.com/57) [http://blog.danmcweeney.com/57].  This will make it easier to tell if you are having issues loading the WSDL or in crafting a correct SOAP request to the server.
Also, please check that you can get to the WSDL in a browser and that it does not contain any Policy tags.
-d
Edited by: Daniel McWeeney on Aug 13, 2008 9:49 AM

>
Sridhar Kannepalli wrote:
>Can you give any hint on how data should be sent to ABAP proxies?
>
I doubt there is any different in the approach for XI web services or ones generated from the Web Application server, I mean that is the point of SOAP right?
>
Sridhar Kannepalli wrote:
> My system (where my Flex application is present), the XI system (where the web service lies) and the SAP system (in which the proxy is present) all are in same domain (say.......xyz.com)
>
Flex has no clue about what is "behind" the web service.  The crossdomain.xml only matters in regards to where the Flex SWF is being served from and where it calls web services from.
Was the Flex App able to load the WSDL like my example?
If so, can you create a XI web service that doesn't take an importing parameters and try and call that?
Can you post the WSDL here so we can see it, to see if the XI server creates anything different?
-d

Similar Messages

  • Consume Webservices with AXIS from within WebAS

    I have problems invoking Web Services from within a bean running in WebAS. I am using Axis to create the calls to the WebServices.
    From a WebService_A running on WebAS 6.4 I want to call WebServices both running on the same server (WebAS 6.4) and on different servers (e.g. Axis).
    If in the endpoint I use the server machine's IP address, I get a server Timeout (502), if I use the machine's name I get the message "Unknown Host". Only when I call a WebService within WebAs and use "localhost" in the endpoint address, do I get the desired result.
    I have already described the problem of calling a web service on a different server in the topic below,and have also tried to configure the servers proxy settings as described (which however showed no effect):
    Proxy Settings for WebService invocation
    As for the generation of proxies (Developer Studio generated deployable proxies) I do not know if they would work for calls on a different server (e.g. Axis), because Developer Studio for some reason would not generate the proxy for the Axis-generated WSDL file (no detailled error message). However I cannot use the generated proxies anyway, because I need to call on endpoints which are provided from a GUI, so I must do the calls by hand - or can I reset a proxy's endpoint?
    Does anybody know which additional settings I have to set (Axis Engine, or in WebAS Administration?)
    Every hint would be greatly appreciated.

    Hi,
    You don't need LCDS/FDS/BlazeDS to consume a web service. All
    you need to do is to use the WebService component.
    Hope this helps.

  • Consuming a Microsoft Workflow from flex 3

    Hello, can it be done?
    I'm developing a Flex 3 application and trying to consume a Microsoft workflow. But it's working just the first time. When I'm trying to consume the service a second time, I get a error saying the host cannot be found.
    I know flex use a soap 1.0 communication protocol, and Microsoft  wwf 1.5.
    If this is not posible, then a good recomendation will be apreciated.
    Can somebody help me with this, please. Thx

    Here is the solution:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <mx:WipeLeft duration="500" id="wipeLeft"/>
            <mx:WipeRight duration="500" id="wipeRight"/>   
        </fx:Declarations>
        <s:VGroup>
            <mx:LinkBar dataProvider="viewStack"/>
            <mx:ViewStack height="200" width="300" id="viewStack">
                <mx:VBox showEffect="{wipeRight}" hideEffect="{wipeLeft}" backgroundAlpha="1" backgroundColor="#FF0000" label="Screen One">
                </mx:VBox>
                <mx:VBox showEffect="{wipeRight}" hideEffect="{wipeLeft}" backgroundColor="#00FF00" label="Screen Two">
                </mx:VBox>
                <mx:VBox showEffect="{wipeRight}" hideEffect="{wipeLeft}" backgroundColor="#0000FF" label="Screen Three">
                </mx:VBox>
            </mx:ViewStack>
        </s:VGroup>
    </s:Application>
    Johnny
    Please rate answers

  • Calling webservice from Flex?

    Hi,
    I get the error when I call webservice from Flex.Can you tell
    me why this happen?
    Thanks
    Mark
    [RPC Fault faultString="Security error accessing url"
    faultCode="Channel.Security.Error" faultDetail="Destination:
    DefaultHTTP"]
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()
    at mx.rpc::Responder/fault()
    at mx.rpc::AsyncRequest/fault()
    at DirectHTTPMessageResponder/securityErrorHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/redirectEvent()

    I think this means that the source of the web service does
    not have a crossdomain.xml file on it allowing access from your
    site. Try adding one to the root of the server and see if that
    fixes the problem.
    hth,
    matt horn
    flex docs

  • Problem accessing Webservices from Flex

    Hi All,
    I have created a Webservice in Abap and configured it using
    SOAMANAGER transaction. I am able to succesfully test the Web serivice which I have created in 'Soamanager ' transaction.
    But when I am calling this Webservice from Flex application I am getting an error as " FAULT : faultCode:WSDLError faultString:'Runtime exception Error #1009' faultDetail:'null' "
    We tried calling the Webservice  outside SAP from the FLex application, it is working fine.
    Please let me know how to rectify this error . It's an urgent requirement.
    Thanks and regards,
    Uma.

    hi
      when you create your destinations for your webservices in the SOAMANAGER-> Destination Template
      you would be providing wsdl url and destination , and in the below you can
      find the username and pwd that need to set , you need to select the radio buttons with logon tickets ,
    username , password , there , re-check the username and pwd by selecting the radio button with selecting the
    radio button username password ,  and even check the webservice in the WSNAVIGATOR , whether its working
    fine , and other thing is  there is situation where your webservice may work fine inthe wsnavigator  even then there would
    be some problem inthe webservice , even check this scenario.
    Thanks

  • Consuming Webservice in WebDynpro - Content-Type issue

    Hi,
    I am getting a shortdump when consuming WebService in WebDynpro.
    I trace it back to the class CL_SOAP_HTTP_TPBND_ROOT method GET_HTTP_HEADERS whereby the
    value = 'text/html; charset=iso-8859-1' while the constants tsrc_soap_11_http_content_type = 'text/xml' ; tsrc_soap_bx_http_content_type = 'application/x-sap-bxml' ; tsrc_soap_mtom_http_cont_type = 'application/xop+xml' ; tsrc_soap_mp_http_content_type = 'Multipart/Related'. Because of this Content-Type difference my WebDynpro application dumps?
    Any ideas how to solve this problem?
    Thanks.
    Regards,
    Amel

    hi,
    Few indroductory sessions
    /people/thomas.jung/blog/2007/12/17/consuming-services-with-abap -Consuming webservices with webdynpro.
    It is possible to create webservice in ABAP as well as in Webdynpro.
    ABAP Webservice:
    http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
    http://www.sappro.com/downloads/SAPXI.pdf
    Webdynpro Webservice:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
    In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
    So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
    Edited by: Mahalakshmi kothuri on Jun 1, 2008 4:17 PM

  • Consuming webservice in a webdynpro component

    Hi Experts,
    I have a third party free webservice as WSDL link.My requirement is to make use of that webservice in my webdynpro component.
    Can any body give me a step by step approach to consume that webservice in my webdynpro Component.
    If possible, Provide me some good material for consuming webservice in a webdynpro component.
    Awaiting for a useful reply.
    Thanks,
    Ramanan.p

    hi,
    Few indroductory sessions
    /people/thomas.jung/blog/2007/12/17/consuming-services-with-abap -Consuming webservices with webdynpro.
    It is possible to create webservice in ABAP as well as in Webdynpro.
    ABAP Webservice:
    http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
    http://www.sappro.com/downloads/SAPXI.pdf
    Webdynpro Webservice:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
    In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
    So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
    Edited by: Mahalakshmi kothuri on Jun 1, 2008 4:17 PM

  • Error in Consuming webservice proxy in SAP

    Hi,
    I have a webservice which I am not able to consume in SAP. I get an error 'Cannot generate Proxy (object <attribute name="arrayType"> missing in WSDL, see long text').
    When i tried to search in SDN, I found a post which says that SAP doesnt support soapenc:Array types and it can be converted to corresponding Sequence. I went through the help link
    http://help.sap.com/saphelp_nw04/helpdata/en/43/ce993b45cb0a85e10000000a1553f6/frameset.htm
    which has a link which shows an example.
    Accordingly, I have changed mine from:
    - <schema targetNamespace="https://tserver.perfectcompliance.com/4DSOAP/LLX_Guardian" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    - <complexType name="ArrayOfstring" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    - <complexContent>
    - <restriction base="SOAP-ENC:Array">
      <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]" />
      </restriction>
      </complexContent>
      </complexType>
      </schema>
    To:
    - <schema targetNamespace="https://tserver.perfectcompliance.com/4DSOAP/LLX_Guardian" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    - <complexType name="ArrayOfstring">
    - <sequence>
      <element name="item" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
      </sequence>
      </complexType>
      </schema>
    After doing the above changes, I am able to consume webservice and create a proxy but it's not working. When i execute any method which is using the Arrayofstring, it gives me an error:
    Complex Types cannot be parsed.
    Is my above change in XML wrong. Do I need to do any other changes.
    Regards,
    Nikhil

    Anyone has any idea on how to solve this issue?

  • Getting error while consuming webservices

    Hi Colleagues,
    In our application we are calling External webservice through WSDL file. I have deployed the WSDL files on server and get the WSDL URL using "WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(), "file.wsdl")". I am able to call the service from WS Navigator.
    I have consumed webservices uisng Adaptive webservice model and given the service group configuration ,created a provider system, assigned the provider system to the application through SOA Management-->Application Communication
    Now when i tried to run the webdynpro application i am getting following error
    Could anyone please let me know how to overcome this?
    Exception i am facing is given here:
    com.sap.engine.services.webservices.espbase.query.exceptions.ObjectNotExistsException: BORM_SWDC_API_SLM_SP_GET_DLPortType using destination : dwd.SystemHome.50000
        at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.findWSEndpoints(WSQueryImpl.java:198)
        at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getEndpointConfigurations(DestinationsHelperImplSoa.java:1448)
        at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getWSDLUrl(DestinationsHelperImplSoa.java:1025)
        at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getWSDLUrl(GenericServiceFactory.java:578)
        at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:338)
        ... 76 more
    Caused by: com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for web service mass config parameters service reference ID 'BORM_SWDC_API_SLM_SP_GET_DLPortType_service_sap_com_BASIC' and application name 'demo.sap.com/softcomp'. Check mass configuration has been done properly.
      at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:522)
      at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:435)
      at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:403)
      at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:381)
      at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateModelInfo(WSModelInfo.java:317)
      at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateModelInfo(WSModelInfo.java:292)
      at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(WSTypedModel.java:68)
      at com.sap.demo.softcomp.model2.Model2.<init>(Model2.java:63)
      at com.sap.demo.softcomp.softcomp.comp.SoftcompComp.wdDoInit(SoftcompComp.java:127)
      at com.sap.demo.softcomp.softcomp.comp.wdp.InternalSoftcompComp.wdDoInit(InternalSoftcompComp.java:266)
      at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:160)
      at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
      at com.sap.tc.webdynpro.progmodel.components.Component.initController(Component.java:253)
      at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:553)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1338)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoPreprocessing(AbstractExecutionContextDispatcher.java:146)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForAppPreprocessing.doService(DispatchHandlerForAppPreprocessing.java:35)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:127)
      at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:95)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoPreprocessing(ExecutionContextDispatcher.java:100)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:74)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:571)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:602)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:252)
      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doPreprocessing(ClientSession.java:677)
      ... 48 more
    Caused by: com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: com.sap.engine.services.webservices.espbase.query.exceptions.ObjectNotExistsException: BORM_SWDC_API_SLM_SP_GET_DLPortType using destination : dwd.SystemHome.50000
      at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getEndpointConfigurations(DestinationsHelperImplSoa.java:1459)
      at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getWSDLUrl(DestinationsHelperImplSoa.java:1025)
      at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getWSDLUrl(GenericServiceFactory.java:578)
      at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:338)
      at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:321)
      at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:282)
      at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:514)
      ... 73 more
    Caused by: com.sap.engine.services.webservices.espbase.query.exceptions.ObjectNotExistsException: BORM_SWDC_API_SLM_SP_GET_DLPortType using destination : dwd.SystemHome.50000
      at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.findWSEndpoints(WSQueryImpl.java:198)
    Please let me know how to overcome this?
    Thanks in Advance
    Regards
    Swetha

    Hi Swetha,
    Caused by: com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for web service mass config parameters service reference ID 'BORM_SWDC_API_SLM_SP_GET_DLPortType_service_sap_com_BASIC' and application name 'demo.sap.com/softcomp'. Check mass configuration has been done properly.
    some configurations for consuming services using service group is missed out.
    check this article for consuming service :
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46]
    Thanks and Regards

  • Consuming Webservice in ABAP: SoapFaultCode:1

    Hi,
    I have created a webservice with NetweaverDeveloperStudio and deployed it to a J2EE. I tested it with the "NDS-Webservice-Tester" and it worked fine.
    I then created a proxy following the section for WebAS 640 in the weblog of Thomas Jung:
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    When using the "test-interface" function in SE80 (also described in Thomas weblog) I get the following result:
    <CX_AI_SYSTEM_FAULT>
    <CODECONTEXT>http://www.sap.com/xml_errorcodes</CODECONTEXT>
    <CODE>SoapFaultCode:1</CODE>
    <ERRORTEXT>
    000D6019F1DD004000000036000020D8000405473991B26F:
    Found 0 operation definitions using keys:
    Key name:'first-body-element-ns'
    key value: 'urn:EdilogUserManagementWebserviceWsd/EdilogUserManagementWebserviceVi/document';
    Key name:'SoapRequestWrapper'
    key value:'getCompany';
    </ERRORTEXT>
    <LANGUAGE />
    </CX_AI_SYSTEM_FAULT>
    Any idea what might cause this error? Is there a list with the SoapErrorCodes and their specific meanings?
    Thanks and regards
    Jan Hempel

    I solved the problem "accidentally": The name of the Webservice was to long! Changing the name from "EdilogUserManagementWebservice" to "UserManagement" did the trick.
    This is probably due to the restricted fieldlength of ABAP-programnames.
    Regards
    Jan Hempel

  • Exception error: While consuming webservice

    While trying to consume webservice from other server. We get the following error
    "I/O Exception: Name in certificate 'URL' does not match host name 'URL'
    The code works fine in development environment. Whereas, when we are trying to consume with/without the port number as 443 using cfhttp method. It is throwing the above error.
    Environment :
    Coldfusion 8
    SQL Server 2005
    Which we are consuming is :
    Java/J2EE.
    Can you please help us? If you require any other details kindly let me know.
    Thanks,
    Satheesh.

    Try setting the resultFormat on your HTTPService to e4x.
    HTH;
    Amy

  • Error in consuming webservices using ABAP

    Dear Gurus,
    I am trying to consume webservices using ABAP. We dont have XI installed and no java instance installed.
    I created a customer proxy through SE80 and generated a proxy class by giving a WSDL link and also defined logical port. Traditionally followed the steps. But while testing webservices , I get a ICF error.
    The error is as follows:
    SOAP : 1:023 SRT : Processing error in internet communication framework ("ICF error when recieving the response  ICM_HTTP_CONNECTION_FAILED)
    Please let me know the cause of this error and solution to be provided.
    I also tried to call the method from an abap program, But I get CX_AI_SYSTEM_FAULT exception.
    Awaiting your replies.
    Thanks in advance for your support and valuable time.
    Thanks
    Gurushanthi

    Hi Gurushanthi,
    It could one of several problems, examples:
    - A firewall setting
    - http communication out disabled by Basis team or
    - The logical port wasn't configured correctly.
    Try the suggestions in this thread to narrow down the reason (particularly the telnet test from the server):
    [Re: Error testing external web service ICM_HTTP_CONNECTION_FAILED;
    Regards, Trevor

  • Webservice client generated from WSDL null entity problem

    hi,
    I'am having a serious problem using the generation (data centric development) capability of Flash builder.
    I have a simple XSD and generated WSLD (from Spring Framework using JAXB). In this I have defined an UpdateRelatie function.
    It looks something like this:
        <xsd:element name="UpdateRelatieRequest">
            <xsd:complexType>
                 <xsd:sequence>
                    <xsd:element name="relatie" type="relatie" minOccurs="1" maxOccurs="1"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="UpdateRelatieResponse">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="relatie" type="relatie" minOccurs="1" maxOccurs="1"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:complexType name="relatie">
            <xsd:sequence>
                <xsd:element name="id" type="xsd:int" />
                <xsd:element name="naam" type="xsd:string" />
                <xsd:element name="telefoonNummer" type="xsd:string" />
                <xsd:element name="mobielNummer" type="xsd:string" />
                <xsd:element name="email" type="xsd:string" />
                <xsd:element name="rekeningNummer" type="xsd:string" />
                <xsd:element name="btwNummer" type="xsd:string" />
                <xsd:element name="kvkNummer" type="xsd:string" />
                <xsd:element name="actief" type="xsd:boolean" />
            </xsd:sequence>
        </xsd:complexType>
    My generated WSDL looks something like this (for the update part as show above).
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:schema="http://www.mydomain.nl/gbs/service/ws" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://www.mydomain.nl/gbs/service/ws">
      <wsdl:types>
        <xsd:schema xmlns="http://www.mydomain.nl/gbs/service/ws" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.mydomain.nl/gbs/service/ws">
      [excluded xsd.. see above]
    </xsd:schema>
      </wsdl:types>
      <wsdl:message name="UpdateRelatieRequest">
        <wsdl:part element="schema:UpdateRelatieRequest" name="UpdateRelatieRequest">
        </wsdl:part>
      </wsdl:message>
      <wsdl:message name="UpdateRelatieResponse">
        <wsdl:part element="schema:UpdateRelatieResponse" name="UpdateRelatieResponse">
        </wsdl:part>
      </wsdl:message>
       <wsdl:portType name="Relatie">
        <wsdl:operation name="UpdateRelatie">
          <wsdl:input message="schema:UpdateRelatieRequest" name="UpdateRelatieRequest">
        </wsdl:input>
          <wsdl:output message="schema:UpdateRelatieResponse" name="UpdateRelatieResponse">
        </wsdl:output>
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="RelatieBinding" type="schema:Relatie">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="UpdateRelatie">
          <soap:operation soapAction=""/>
          <wsdl:input name="UpdateRelatieRequest">
            <soap:body use="literal"/>
          </wsdl:input>
          <wsdl:output name="UpdateRelatieResponse">
            <soap:body use="literal"/>
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="RelatieService">
        <wsdl:port binding="schema:RelatieBinding" name="RelatiePort">
          <soap:address location="http://localhost:8080/GBS/relatieService"/>
        </wsdl:port>
      </wsdl:service>
    </wsdl:definitions>
    When I run my test client written in Java, I can update any given relatie-object in my database.
    BUT when I, based upon this, generate a webservice stub using the "data -> connect to webservice" option. I get nicely generated code and the ability to to bind this to an form with which I can edit the data.
    Now for my PROBLEM:
    When I enter data in the form, during the process of transforming my Relatie object to XML, my entire object disappears. i.e. my object does NOT get transformed to XML for soap transport. Somewhere deep in the webservice code, it just gets ignored and I do NOT know why.
    What does work is retrieving data through a webservice. I can display a nice grid full of data from my database. What does not work is trying to send a domain object (Relatie) from Flex through a webservice and process it in java. The object is null on the java side. I can even see in the resulting soap envelope that nothing gets transformed to XML. See output below:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <SOAP-ENV:Body>   
        <schema:UpdateRelatieRequest xmlns:schema="http://www.mydomain.nl/gbs/service/ws"/>  <!-- NO OBJECT -->
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Which should have been based upon the given WSDL (as the java client does send over the wire)
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
      <ns3:InsertRelatieRequest xmlns:ns3="http://www.mydomain.nl/gbs/service/ws">
        <relatie>
          <btwNummer>BTW</btwNummer>                                                                                            <!-- OBJECT PRESENT -->
          <actief>false</actief>
       </relatie>
      </ns3:InsertRelatieRequest>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Can anyone help me please. I'am stuck now.
    Kind regards,
    Marc

    Thanks for the detailed steps. I was able to reproduce the issue.
    I have logged an issue under 'WebService'. https://bugs.adobe.com/jira/browse/SDK-24841 . We will look into it.
    -Radhakrishna

  • Invalid WSDL while consuming webservice

    Hi ,
    I have done with soap to proxy interface  in PI7.1 EHP1,
    Now i am trying to publish the sender agrement to service registry i am facing the issue as
    Service Registry configuration issue
    because of this i have created wsdl file from display wsdl tool  in directory using the
    http://<host>:<J2EEport>/XISOAPAdapter/MessageServlet? channel=<party>:<service>:<channel>
    and now  i tryed tested this wsdl file by using soapui its working fine.
    the same wsdl when i am using in creating a webdynpro applicaiton to consume this wsdl file i am getting as invalid wsdl file.
    i have followed the link to create a consume webservice
    http://www.riyaz.net/blog/xipi-consuming-xi-web-services-using-web-dynpro-part-ii/
    Kindly suggest me is there any new way to create wsdl in 7.11 as i see old version 7.0 wsdl are wroking fine while creating a model in webdynpro application.
    Regards
    Vijay G
    Edited by: vijay Kumar on Jun 9, 2010 1:31 PM

    Hi,
    Since you are using PI 7.1, you need not to define the websierce by using wizard in the integration directroy.
    In PI 7.1 it is not required to manually formulate your sender SOAP URL, generated WSDL contains all the required information.
    Directly Go to Integration Directory - - - -> Sender Agreement - - - > Display WSDL
    This would help you:
    http://www.riyaz.net/blog/pi-71-publishing-service-interface-as-a-webservice-in-sr/technology/sap/527/
    Regards,
    Abid Mazhar

  • Calling Web Service from Flex (to PeopleSoft)

    I'm new to Flex and web services. I've created a web service
    in PeopleSoft and successfully imported the WSDL into Flex so that
    it has contacted the PS server and returned data (using
    mx:WebService and mx:Operation code I found examples of). However,
    I have been unable to pass a parameter to the service from Flex
    using that code. I then discovered and followed the sample code in
    the Flex-generated package, but no matter what I do I cannot
    successfully supply the "myValue" in the sample shown below. Here
    is Flex's own text in my GetInfo.as file built by Flex:
    * MXML sample code:
    * First you need to map the package where the files were
    generated to a namespace, usually on the <mx:Application>
    tag, like this: xmlns:ws="com.draper.*"
    * Define the service and within its tags set the request
    wrapper for the desired operation
    * <ws:GetInfo id="myService">
    * <ws:FindID_request_var><ws:FindID_request
    Find__CompIntfc__DL_TREE_IB_CI=myValue/>
    * </ws:FindID_request_var>
    * </ws:GetInfo>
    * Then call the operation for which you have set the request
    wrapper value above, like this:
    * <mx:Button id="myButton" label="Call operation"
    click="myService.FindID_send()" />
    My code is:
    <ws:GetInfo id="userRequest">
    <ws:findID_request_var><ws:FindID_request
    Find__CompIntfc__DL_TREE_IB_CI="X"/>
    </ws:findID_request_var>
    </ws:GetInfo>
    When I try to run it, Flex is unhappy with the value I am
    assigning ("X" above) no matter what I put there. If I omit the
    double quotes and try to assign a text input field value (which is
    my goal here), it complains that it expects a double quote. If I
    put almost anything else there, it complains either:
    Initializer for 'Find__CompIntfc__DL_TREE_IB_CI'; values of
    type com.draper.Find__CompIntfc__DL_TREE_IB_CITypeShape cannot be
    represented as text.
    or, if I try this line, where I attempt to pass a text input
    field:
    <ws:FindID_request
    Find__CompIntfc__DL_TREE_IB_CI="{compID.text}"/>
    then I get:
    1067: Implicit coercion of a value of type String to an
    unrelated type com.draper:Find__CompIntfc__DL_TREE_IB_CITypeShape
    Can anyone help with this please?
    Thanks
    Jim

    Chris,
    Thanks. That is what I *was* doing, that got me all data
    returned. The parameter never gets passed in the XML. It acts as if
    a blank was passed and returns everything (just as you would expect
    in the PeopleSoft search page when you just click Find without
    specifying a key). It is expecting a partial key and will return
    all keys that match (find method).
    PS expects the key DL_CS_COMPID, and in Flex I've seen
    Find__CompIntfc__DL_TREE_IB_CI also. So I've tried:
    <mx:request>
    <!-- <DL_CS_COMPID> -->
    <Find__CompIntfc__DL_TREE_IB_CI>
    {compID.text}
    </Find__CompIntfc__DL_TREE_IB_CI>
    <!-- </DL_CS_COMPID> -->
    </mx:request>
    (You can see I currently have dl_cs_compid commented out).
    Both behave identically - they are ignored in the XML that is sent
    from Flex. Here is a sample of what was received in PS:
    <?xml version="1.0"?>
    <M540564.V1:Find__CompIntfc__DL_TREE_IB_CI
    xmlns:M540564.V1="
    http://xmlns.oracle.com/Enterprise/Tools/schemas/M540564.V1"
    xmlns:SOAP-ENV="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"/>
    I believe there should be a
    <DL_CS_COMPID>value</DL_CS_COMPID> string in there.

Maybe you are looking for

  • Numeric Data Types

    What are the numeric data types in Oracle? I created the following table: CREATE TABLE CONTRACT ( CONTRACT_ID INTEGER NOT NULL, QUOTE_ID LONG, BOOK_RATE NUMBER, IBTSS_CONTRACT_NUM VARCHAR2(20) But in the Object Browser, the data type of CONTRACT_ID b

  • ITunes upgrade fails due to QuickTime

    I tried to upgrade my iTunes to version 9.3.xx. Unfortunately the upgrade failed. The application since then is not opened and the following error message appeared. "Error writing the file c:\Program Files\Quick Time\QTTask.exe Verify that you have a

  • How to declare a header line table in class

    Hi Experts ; I m writing a class.I must display a picture in class. So Im find a below code   TYPES: BEGIN OF ZW3QUERY,           NAME(30) TYPE C,           VALUE(255) TYPE C,          END OF ZW3QUERY.   data DOCKING type ref to CL_GUI_DOCKING_CONTAI

  • Help connecting BEFW11S4 to a WRT54G

    Wanted to try to get a BEFW11S4 to connect to my WRT54G that is already set up and working fine. Not sure if this is at all possible but it would help greatly if this would work and I didn't have to buy an extra thing to get all my stuff internet acc

  • Date format in a JTextField

    I have created 2 jtextfields to enter a start and stop date for printing a report within the date range selected. How do format the jtextfields to insure they are properly date formatted i.e. MM/dd/yyyy Thanks, William