Parsley Dynamic Command & Dynamic Object for Soap web services

Hi,
    <fx:Declarations>
        <s:CallResponder id="getSearchEngineForReferencePageResult"/>
        <lawpadcommunicationservicesport:LawPadCommunicationServicesPort id="lawPadCommunicationServicesPort"
                                                                         result="lawPadCommunicationServicesPort_resultHandler(event)"       
                                                                         fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
        <s:CallResponder id="getBasePathForFileDownLoadResult"/>
        <lawpadcommunicationservicesport:LawPadCommunicationServicesPort id="RefLawPadCommunicationServiceGetBasePath"
                                                                         result="RefLawPadCommunicationServiceGetBasePath_resultHandler(event)"
                                                                         fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
        <s:CallResponder id="getXmlPathLinkResult"/>
        <xmlpathcommunicationport:XmlPathCommunicationPort id="xmlPathCommunicationPort"
                                                           fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
    </fx:Declarations>

Hi,
I am new to Parsley.....
Can u refer me some link to understand all features of Parsley.
Mainly Dynamic Command and object for soap web services....
I am in confused state with the usage of dynamic command and object for Soap web services.
<fx:Declarations>
        <s:CallResponder id="getSearchEngineForReferencePageResult"/>
        <lawpadcommunicationservicesport:LawPadCommunicationServicesPort id="lawPadCommunicationServicesPort"
                                                                           result="lawPadCommunicationServicesPort_resultHandler(event)"        
                                                                           fault="Alert.show(event.fault.faultString + '\n' +  event.fault.faultDetail)" showBusyCursor="true"/>
        <s:CallResponder id="getBasePathForFileDownLoadResult"/>
        <lawpadcommunicationservicesport:LawPadCommunicationServicesPort id="RefLawPadCommunicationServiceGetBasePath"
                                                                            result="RefLawPadCommunicationServiceGetBasePath_resultHandler(event) "
                                                                           fault="Alert.show(event.fault.faultString + '\n' +  event.fault.faultDetail)" showBusyCursor="true"/>
        <s:CallResponder id="getXmlPathLinkResult"/>
        <xmlpathcommunicationport:XmlPathCommunicationPort id="xmlPathCommunicationPort"
                                                            fault="Alert.show(event.fault.faultString + '\n' +  event.fault.faultDetail)" showBusyCursor="true"/>
  </fx:Declarations>
Thanks & Regards

Similar Messages

  • Is crossdomain.xml Needed for SOAP Web Services?

    A Flash developer who is attempting to use Flash to access a
    SOAP web service provided on one of our servers says we need to add
    a crossdomain.xml file to our server listing their domain as an
    acceptable source. The SOAP service simply accepts some data and
    returns a status. It doesn't make sense to me that we would need to
    provide a crossdomain.xml file. If we did, all web services all
    over the Internet would have to do the same to allow Flash to call
    them.
    If I am correct and the file is not necessary, then what else
    in FlashPlayer might be blocking their attempts to access our
    server? I don't know much about Flash, but I do know some sort of
    security configuration files are necessary to allow SWF files to
    access the Internet. Could this be what they are missing?

    low_right wrote:
    > A Flash developer who is attempting to use Flash to
    access a SOAP web service
    > provided on one of our servers says we need to add a
    crossdomain.xml file to
    > our server listing their domain as an acceptable source.
    The SOAP service
    > simply accepts some data and returns a status. It
    doesn't make sense to me
    > that we would need to provide a crossdomain.xml file. If
    we did, all web
    > services all over the Internet would have to do the same
    to allow Flash to call
    > them.
    >
    > If I am correct and the file is not necessary, then what
    else in FlashPlayer
    > might be blocking their attempts to access our server? I
    don't know much about
    > Flash, but I do know some sort of security configuration
    files are necessary to
    > allow SWF files to access the Internet. Could this be
    what they are missing?
    >
    >
    Yes, you need a crossdomain.xml file in place. When I do SOAP
    calls to
    a service not under my control I just write a proxy for it,
    then I don't
    need to have anyone add the crossdomain policy file.

  • CF 9 and serializing CFCs for SOAP Web Services

    I've noticed after upgrading to CF 9 from CF 8 that the name of any CFCs being returned are now being capitalized in the generated WSDL document and in the SOAP response.  This was not the case in CF 8, and is breaking clients written in case-sensitive languages (in this particular case, .NET).
    I'm wondering if anyone else has experienced this problem, and what resolutions may have been found.
    Here is an example
    foo.cfc:
    <cfcompont displayname="foo">
         <cfargument name="getBar" access="remote" returntype="bar" />
         <cfreturn new bar() />
    </cfcomponent>
    bar.cfc
    <cfcomponent displayname="bar">
         <cfproperty name="name" type="string" />
    </cfcomponent>
    In the wsdl generated by CF 8, the complexType is named 'bar'.  In CF 9, it's named 'Bar'.  The same happens in the returned SOAP response.
    Thanks.

    Did you run on CF 8.0.1 or CF 8?  Some further digging suggests that this might be an 8.0.0 vs. 8.0.1 issue.  Here is some "code" that will produce a WSDL in 9.0.1 and 8.0.0
    Soap.cfc:
    <cfcomponent output="false">
         <cffunction name="getObject" returntype="object" access="remote">
              <cfreturn createObject("component",  "object") />
         </cffunction>
    </cfcomponent>
    Object.cfc:
    <cfcomponent displayname="object">
         <cfproperty name="name" type="string" required="true" />
    </cfcomponent>
    WSDL produced by CF 9.0.1:
    <wsdl:definitions targetNamespace="http://soaptest" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://soaptest" xmlns:intf="http://soaptest" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://rpc.xml.coldfusion" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <!--WSDL created by ColdFusion version 9,0,1,274733-->
    <wsdl:types>
    <schema targetNamespace="http://soaptest" xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://rpc.xml.coldfusion"/>
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <complexType name="Object">
    <sequence>
    <element name="name" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </schema>
    <schema targetNamespace="http://rpc.xml.coldfusion" xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://soaptest"/>
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <complexType name="CFCInvocationException">
    <sequence/>
    </complexType>
    </schema>
    </wsdl:types>
    <wsdl:message name="getObjectRequest">
    </wsdl:message>
    <wsdl:message name="CFCInvocationException">
    <wsdl:part name="fault" type="tns1:CFCInvocationException"/>
    </wsdl:message>
    <wsdl:message name="getObjectResponse">
    <wsdl:part name="getObjectReturn" type="impl:Object"/>
    </wsdl:message>
    <wsdl:portType name="Soap">
    <wsdl:operation name="getObject">
    <wsdl:input message="impl:getObjectRequest" name="getObjectRequest"/>
    <wsdl:output message="impl:getObjectResponse" name="getObjectResponse"/>
    <wsdl:fault message="impl:CFCInvocationException" name="CFCInvocationException"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="soap.cfcSoapBinding" type="impl:Soap">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getObject">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="getObjectRequest">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://soaptest"use="encoded"/>
    </wsdl:input>
    <wsdl:output name="getObjectResponse">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://soaptest"use="encoded"/>
    </wsdl:output>
    <wsdl:fault name="CFCInvocationException">
    <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="CFCInvocationException"namespace="http://soaptest" use="encoded"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="SoapService">
    <wsdl:port binding="impl:soap.cfcSoapBinding" name="soap.cfc">
    <wsdlsoap:address location="http://lcmswindows/soapTest/soap.cfc"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    WSDL produced by CF 8.0.0
    <wsdl:definitions targetNamespace="http://soapTest" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://soapTest" xmlns:intf="http://soapTest" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://rpc.xml.coldfusion" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <!--WSDL created by ColdFusion version 8,0,0,176276-->
    <wsdl:types>
    <schema targetNamespace="http://soapTest" xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://rpc.xml.coldfusion"/>
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <complexType name="object">
    <sequence>
    <element name="name" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </schema>
    <schema targetNamespace="http://rpc.xml.coldfusion" xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://soapTest"/>
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <complexType name="CFCInvocationException">
    <sequence/>
    </complexType>
    </schema>
    </wsdl:types>
    <wsdl:message name="CFCInvocationException">
    <wsdl:part name="fault" type="tns1:CFCInvocationException"/>
    </wsdl:message>
    <wsdl:message name="getObjectResponse">
    <wsdl:part name="getObjectReturn" type="impl:object"/>
    </wsdl:message>
    <wsdl:message name="getObjectRequest">
    </wsdl:message>
    <wsdl:portType name="soap">
    <wsdl:operation name="getObject">
    <wsdl:input message="impl:getObjectRequest" name="getObjectRequest"/>
    <wsdl:output message="impl:getObjectResponse" name="getObjectResponse"/>
    <wsdl:fault message="impl:CFCInvocationException" name="CFCInvocationException"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="soap.cfcSoapBinding" type="impl:soap">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getObject">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="getObjectRequest">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://soapTest"use="encoded"/>
    </wsdl:input>
    <wsdl:output name="getObjectResponse">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://soapTest"use="encoded"/>
    </wsdl:output>
    <wsdl:fault name="CFCInvocationException">
    <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="CFCInvocationException"namespace="http://soapTest" use="encoded"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="soapService">
    <wsdl:port binding="impl:soap.cfcSoapBinding" name="soap.cfc">
    <wsdlsoap:address location="http://dev.m5.dominknow.com/soapTest/soap.cfc"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    I've highlighted the relevant differences.  I don't have a server running 8.0.1 at the moment.  Customers running MX 7 have the same (lower case) WSDL as 8.0.0.  I've had some correspondance with others that suggests 8.0.1 behaves the same as 9.0.1.  I've actually been able to find a blog post suggesting there was a change to WSDL generation in 8.0.1 with a link to an Adobe forum thread, but that thread no longer seems to exist.  The blog post:
    http://blog.coldfusionpowered.com/?p=28

  • Need to auto-generate SDK for REST web service.

    My company has developed a REST API for some web services, and we'd like to provide users with a Java SDK for consuming those services.
    Our services are described by an XSD schema. On the backend, we are using JAXB to create Java classes corresponding to the schema. We create the request objects based on the parameters in the REST url, and JAXB converts our response objects from Java to XML.
    We'd like to provide our users with similar Java classes on the client side. They should be able to create the object corresponding to the request, fill in various parameters, and submit it to our web service. The SDK should automatically convert the object into a REST URL, hit the URL with a Get, read the XML response, and convert that response into Java objects.
    It seems like we should be able to auto-generate such an SDK based on our schema.
    It seems like there are several tools for doing this for SOAP web services. For example, Apache Axis has Java2WSDL and WSDL2Java.
    Can anyone recommend tools for creating client-side libraries for consuming RESTful web services? Does anyone have advice on products to avoid?

    Replying to my own post here. The WADL2Java project on java.dev seems to be more like what I need. The only user-experience I've seen on the 'net is in this forum post:
    http://forum.java.sun.com/thread.jspa?threadID=5239123&tstart=0
    Anyone else used it?

  • Dynamic destinations for adaptive web service in webdynpro for java

    Hi,
    Please advice me on how to create dynamic destination for adaptive web service model in webdynpro for java.
    Regards,
    Patana

    Hi,
    If this is the case, then use the HTTP destination for this.
    What you need to do is:
    1. Create one HTTP destination in visual administrator at services-> Destinations. Provide HTTP url of the your web service and the security options.
    2. Specify this HTTP destination in the code before executing web service model.
    Write following code for that:
    wdContext.current<node name>Element().modelobject()._setHTTPDestination(<Specify HTTP destination name>);
    Then execute your web service model.
    Now, whenever you want to change the server on which your web service is running, make change in the HTTP Destination in visual administrator.
    Refer this link,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
    Regards,
    Sunaina Reddy T

  • Help NeEDED. How to link to soap web service from objective c

    Hello , HELP
    I'm trying to connect to a SOAP based web service using objective C as my programming language. Although the little bit of information on the Apple Dev centre documents is should be straight forward, im struggling like **.
    What im trying to do is connect via a small username and password text-box plus 'login' button from interface builder to
    https://api.betfair.com/global/v3/BFGlobalService.wsdl and parameter called login.
    then pass it my username and password from the interface text-boxes plus a few other standard set bits of information which are required.
    in turn the soap request will pass back a session token which i need to store.
    I've tried using WSMakestubs, which builds successfully the classes, but when calling them method nothing happens.

    Hello Etresoft
    Thanks again for coming back to me.. I would like to add that maybe on my first thread i wasn't as clear on what i was asking for, and also what avenues have have stepped down before asking for help.. Believe me i hate nothing more than not being able to resolve something myself. I'm currently reading 'another' programming in cocoa book by Arron Hillgrass, although he touches on the web service call to a Amazon web service example, he doesn't go into detail about how to actually do this.
    So again thank you for trying to help me.. its greatly appreciated.
    Ok back to the subject, and your response below.. I will try and be as informative as i can.
    I'm want to create a application using the interface builder which has a username and password textfield plus a button called <login>..
    On entering the username and password and pressing the login button, i was to send a request to the a .wdsl (SOAP) web service and login.! the webservice in return will send back a session token, which i need to store for further web service calls.
    In xcode i have been trying now for 1 week..!!! and the more i read up on how to make the Soap request call the more i fail to understand if this is simple or complex.
    * A bit more info if i may, on clicking the login button i need to send information to the below address as a soap type request.
    https://api.betfair.com/global/v3/BFGlobalService.wsdl
    i need to also tell the request the method name which is loginreq
    and also i need to pass these parameters in the request.
    username (from textfield)
    password (from textfield)
    productId = '82'
    vendorsoftwareId = '0'
    locationId = '0'
    ipAddress = '0'
    The stage I've got to is, I've used wsmakestubs and I've tried 'wdsl2objc' to create the classes required. I have then created a app controller class and a interface build app with the textfields and login button. I have then linked up the textfields and button to the nsobject appcontroller with a action ibaction loginreq etc. On build and go the app builds without error's but fails to do anything when i press the login button.. (more i think about this the more i think its either two things, one im not passing the parameters and two im not invoking the loginreq method from the class.)
    I feel like im wading in treacle and getting nowhere fast.!
    All i would like is for some help from someone to point me the correct direction..
    Im thinking that with all the Soap web services out there in the WWW, this must now be a easy thing to do in xcode. Im starting to think im stupid..
    Thanks again for you Help
    Regards
    Iain Smith
    [email protected]

  • Creating SOAP Receiver comm.channel for axis web service

    Hi,
    I created Soap Receiver comm. channel fro Axis web service like below:
    *Target URL* : http://<IP>:<Port>/<x>/service
    *User:* <user>
    *Password :* <password>
    *SOAP Action:* <target namespace>/method
    when i drive PI Message that use Soap Receiver it get error below
    I do same method for .Net web service, it runs properly.
    How can i solve this problem?
    Error
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!--  Call Adapter -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">NO_MAPPINGPROGRAM_FOUND</SAP:Code>
      <SAP:P1>Object ID B3004965647F340C997B5F2CC9EA7E22 Software Component 4CF44F80503211DEB2A0D3F40A194B29</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Mapping program is not available in runtime cache: Object ID B3004965647F340C997B5F2CC9EA7E22 Software Component 4CF44F80503211DEB2A0D3F40A194B29</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Hi,
    I did all  but nothing changed?
    I have doubt about axis side. Because respose like below.
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="UNKNOWN">APPLICATION_ERROR</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>application fault</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="http://xml.apache.org/axis/">hostname</SAP:ApplicationFaultMessage>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    May be Soap Receiver setting for axis web service must be different.
    Thanks.

  • Best SOAP Web Services Architecture for E-Commerce

    Hi there,
    I have developed an E-Commerce system following the normal way of
    developing Java web applications (all classes and JSP files in one Eclipse web project).
    I want to modularize the application, I want to split the application into
    two applications:
    1. The core app, with SOAP web services methods
    2. The client (front-end JSP files and some servlets to request/receive responses from the SOAP web services core app)
    Basically, I want the servlets in the client app to call the core SOAP web services app for data such as
    get product by ID, get customer by ID, etc...
    The core SOAP web services app would then return a response in an XML format, which I then
    would map to Java objects at the client application.
    My questions are:
    1. Is this the right way to go?
    2. Where should the session management be? At the client app?
    Hope you can help?
    I have been thinking about a proper architecture for 2 years and honestly it's been giving me sleeping problems.
    Thanks!

    It works. Thanks,
    Ioana
    "Neal Yin" <[email protected]> wrote:
    The error means your EJB is not deployed.
    Adding a EJB module to your application.xml file of the ear should fixe
    it.
    <application>
    <display-name />
    <module>
    <web>
    <web-uri>dox_sdi.war</web-uri>
    </web>
    </module>
    <module>
    <ejb>DocumentService.jar</ejb>
    </module>
    </application>
    "Ioana Meissner" <[email protected]> wrote in message
    news:3cf640cc$[email protected]..
    I have used the following example for my own web service with EJBcomponent and SOAP
    Message Handler Chain:
    http://e-docs.bea.com/wls/docs70/webServices/dd.html#1058208
    I have a deployment error:
    javax.naming.NameNotFoundException: Unable to resolve'app/ejb/DocumentService.j
    ar#DocumentService/home' Resolved: 'app/ejb'Unresolved:'DocumentService.jar#Doc
    umentService' ; remaining name 'DocumentService.jar#DocumentService/home'
    In attachement is the ear file.
    Is there a problem in web-services.xml?
    Thanks

  • SOAP vs. XML-RPC for synchronous Web Services applications

    Hi everyone, I have to finish one project soon and I have to make a decision. Because I don't have much time I want to ask if anyone can answer me, what are the major differences bettween SOAP vs. XML-RPC for synchronous Web Services applications. I'll be very grateful if you help me!
    Thanks in advance!

    Come on guys i know you can help me, please don't hesitate to write some row

  • Web-service client for legacy web service

    I currently access a legacy server (Lotus Domino 7) via CORBA. I thought a web service (my second) would be faster, but a whole day's research has uncovered only obsolete or trivial examples.
    The WSDL generated by the server is rpc/encoded so wsimport cannot generate the necessary "artifacts" for a web service client.
    The web service is simple: it accepts two java.lang.Strings, and returns a java.lang.String of XML. The "dynamic proxy" approach from 1.4.2 seems to have disappeared; I was hoping that approach would let me just hand-code a single "artifact" - an SEI based on the method information in the WSDL.
    1) What classes in JAX-WS will let my web service client communicate with rpc?
    2) With such a simple signature, do I need any other "artifacts" beyond an SEI?
    Thanks for any help!

    In case anyone's search leads them here, I've posted the solution at:
    *[http://www.pby.com/general.nsf/webarticles/dominowebservice01]*
    It is an exhaustive article (not "Hello World"!) that goes through several versions of the web service and client - hopefully explaining all* pieces of the puzzle:
    ~ web service code,
    ~ WSDLs
    ~ schema
    ~ thoroughly-documented clients that do and do not use JAXB
    ~ ... that use generated artifacts
    ~ ... that customize existing POJOs
    ~ the SOAP messages generated in each direction
    ~ the necessary JAXB annotations
    ~ explanations of how the code works
    ~ explanations of how namespaces affect the code
    ~ on and on and on...
    My constant goal was to write an uncomplicated solution that uses as few artifacts (two) and annotations as possible. The end result is a small, fast JAX-WS 2.0 client that uses JAXB to invoke and consume a secured Domino 7 (1.4.2 JVM + AXIS) web service, using RPC/literal SOAP messages.

  • How to access SOAP web service with authentication, HTTP basic Authentication

    Dear All
    i use Flash Builder 4.5, flex 4..1, i am developing a flex client to soap webservices hosted over Glassfish 2 Java server, the web services is protected by HTTP Basic Authentication, everythime i run my code , the prombt for username and password show up, i need to pass user name and password through action script, i followed the flollowing (but was for http web service, not soap) but really did not work.
    http://stackoverflow.com/questions/490806/http-basic-authentication-wi th-httpservice-objects-in-adobe-flex-air
    http://forums.adobe.com/message/4262868
    private function authAndSend(service:HTTPService):void
            var encoder:Base64Encoder = new Base64Encoder();
            encoder.insertNewLines = false; // see below for why you need to do this
            encoder.encode("someusername:somepassword");
            service.headers = {Authorization:"Basic " +encoder.toString()};                                               
            service.send();
    Also i noticed in debug mode, always that WARNNING raised up
    Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml.  The 'secure' attribute is only permitted in HTTPS and socket policy files.  See http://www.adobe.com/go/strict_policy_files for details.
    any idea ?

    Hello,
    I don't know if this could help.
    Another way to connect to a web service by SOAP and WSDL is to click on the Data/Services panel, then click on "Connect to Data/Services" and then select the "Web Service" (WSDL) icon. This could help as well.

  • Infopath 2013 SOAP Web Service Data Connection - Error: The file is not a valid XML file

    Here are the steps to replicate the issue I’m having when adding lists.asmx or any other SharePoint web service in InfoPath 2013. This web service opens fine in the browser from my desktop. My account is a farm administrator and is added to the
    web application’s User Policy.  I can use these services just fine using Nintex 2013 Workflow.
    Open InfoPath Designer 2013.
    Select Blank Form and click Design Form button.
    Click “Data” tab.
    Click “From Web Service” and select “From SOAP Web Service”
    Enter https://mysiteurl.com/_vti_bin/lists.asmx?WSDL for the web service definition.
    Click Next.
    Windows Security window pops up.
    Enter a credential. I tried both my account and the farm account. My account is a farm admin and is added to the web application’s User Policy with Full Control.
    Click OK. It prompts for credential multiple times.
    I get below this error messages: 
    Sorry, we couldn't open https://mysiteurl.com/_vti_bin/lists.asmx?WSDL
    InfoPath cannot find or cannot access the specified Web Service description.
    The file is not a valid XML file.
    Not enough storage is available to process this command.
    We have a project that is in need of these services using InfoPath so any help is greatly appreciated.

    Hi Brian_TX,
    For your issue, try to the following methods:
    Change your service binding in web.config to:binding="basicHttpBinding". It seems in VS it defaults to wsHttpBinding.
    Replace all instances of "parameters" from the web service wsdl with the name "parameter"
    There are some similar articles about the issue, you can have a look at them:
    http://www.infopathdev.com/forums/t/23239.aspx
    https://social.msdn.microsoft.com/Forums/office/en-US/621929c3-0335-40af-8332-5a0b430901ab/problems-with-infopath-web-service-connection?forum=sharepointcustomizationprevious
    https://social.msdn.microsoft.com/Forums/en-US/5fa5eca8-f8d7-4a2e-81ba-a3b4bdcfe5af/infopath-cannot-find-or-cannot-access-the-specified-web-service-description?forum=sharepointcustomizationlegacy
    Best Regards
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • SOAP web service

    I want to query data from a SOAP web service using Lookout, for
    example:
    SOAP Service URL: http://localhost/QueryService/QueryService.asmx
    ..NET Remoting DLL: [INSTALLDIR]\bin\QueryService.dll
    I need to write a program "Soapclient" using VB or C++? And use
    "Ddelink object" link to this program in Lookout? Is it right? I am
    weak in writing program. Anyone can tell me how to do it step by step?
    I need you help,thank you!

    This could be a quite difficult application or we could simplify this by using the Lookout Web Client. The Lookout Web Client will create the HTML file and you can either use an Apache Web Server or you can install Internet Information Services which is a Windows add-on and do all of this without programming. For such a complicated setup, I would contact a NI engineer and discuss options before moving forward.
    Regards,
    Robert Jackson
    Application Engineer

  • SOAP, Web Service Interaction using Flex 2

    A Web Service exists on the local computer. It is a .NET
    Framework web service (SOAP) running under IIS. It commences with a
    demand for three parameters. One fills in the form and presses a
    button on the form and is returned an XML file with vital data
    necessary for future web service transactions that will involve
    SQL-form queries and XML responses. Actions that Flex 2 is required
    to perform: 1) submit a URI and receive a form, 2) POST a response
    to the form and receive an XML file, 3) submit a query, 4) reformat
    an XML file to remove irrelevant data and to make a Flex 2 data
    provider happy so that a chart can be displayed. I assume Flex 2
    can do all these things and it is just a matter of knowing how.

    Your description is a bit confusing. The webservice in
    question has a single method that takes three parameters, and
    returns a FORM? What are the three parameters, and what, exactly,
    do you mean by "form".
    When I hear "form", I usually think of an HTML form with text
    input fields, comboboxes, radio buttons, etc. But, in general,
    properly developed webservices do not return UI elements (such as
    text input fields, comboboxes, and radio buttons). They are
    typically only used as a communication method in the model layer,
    where they return datasets or process responses. And the view layer
    (in this case, Flex) is responsible for building any UI elements
    that collect data for the interaction with the webservice.
    But, okay, let's say, for some odd reason, this webservice
    returns a form (as I am thinking of the term). What format is this
    form in? I personally can't think of a readily available method
    that could display this form with a Flex app, but maybe I'm missing
    something. Or is it that, by "form", you mean something completely
    different, like a second method in the webservice that receives
    posted data? What is actually returned in your step #1?
    Step #2 is a cinch. Simply create an HTTPService tag (or in
    script, create URLLoader and URLRequest objects) in your app that
    posts the appropriate data to the appropriate webservice URL with
    the appropriate method. In the callback handler function for that
    webservice call, a (properly formatted) XML response will be
    converted automatically to a "Flex-friendly" data object, which you
    can easily parse apart to build your SQL as necessary.
    Step #3, again, where do you submit the query to? A third
    method in the webservice? If so, it would be just like #2 above.
    And the response data would, again, be automatically converted into
    a Flex data object.
    Step #4 would probably be accomplished more by manipulating
    the Flex data object rather than any reformatting of the XML.
    Simply loop through the object and remove irrelevant children/data.
    Then set a bindable variable to the cleaned data object, and have
    your chart bound to that variable.
    There are many many examples on the web. Just search for
    'flex "mx:HTTPService"' or similar. And take a look through
    LiveDocs for [Bindable] for step #4.

  • Problem updating a SOAP Web Service with ArrayCollection

    Hello,
    I am having issues POST'ing an ArrayCollection to a C# Web
    Method. Here's how I have my application set up:
    I have a DataGrid in my application and set the dataProvider
    to be the result object of a Web Service operation. I set the
    DataGrid's editable property to "true" and would like to be able to
    edit the data and send off the DataGrid's dataProvider as the
    parameter for the Web Method. If I edit the first row of the
    DataGrid and trigger the operation, it gets saved just fine. If I
    try to edit any other row this way, it keeps sending the same
    packet (as verified by a packet sniffer) not allowing me to update
    any other row. It seems the Web Service is sending the first 255
    characters of the serialized ArrayCollection.
    My questions are: why is this happening?
    and
    How can I fix this?
    Here is the request of my Web Service operation:
    <mx:request xmlns="">
    <GlossaryTerms>
    {GlossaryArrayCollection}
    </GlossaryTerms>
    </mx:request>
    This is the definition of GlossaryArrayCollection:
    [Bindable]
    public var GlossaryArrayCollection:ArrayCollection = new
    ArrayCollection();
    Here is the SOAP packet that the C# Web Method is expecting:
    <?xml version="1.0" encoding="utf-8"?>
    <soap12:Envelope xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:soap12="
    http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>
    <GlossaryUpdate xmlns="">
    <GlossaryTerms>
    <Glossary cID="int" cDeleted="boolean" cTerm="string"
    cDefinition="string" cURL="string" cPublic="boolean"
    cRowVersion="string"/>
    <Glossary cID="int" cDeleted="boolean" cTerm="string"
    cDefinition="string" cURL="string" cPublic="boolean"
    cRowVersion="string" />
    </GlossaryTerms>
    </GlossaryUpdate>
    </soap12:Body>
    </soap12:Envelope>
    Thanks to anyone for their help.
    Brian Cary

    Where exactly you are seeing this error? possible for you share the screenshot?
    Execution failed: These policy alternatives can not be satisfied:
    {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SupportingTokens

Maybe you are looking for

  • Can you work on the same iweb page on 2 different computers?

    hi, i usually work on my imac doing my iweb pages, i would like to work on a second ibook that is in the house. i've tried and tried but can't find a way for the ibook one to pick up the pages. it has the same .mac idisk folder as the other mac with

  • Two Purchase Info Records for Same Material & Plant Combination

    Hi, 2 Purchase Info Records are there for Same Material & Plant for 2 Different Vendors & Net Price is maintained in both Info Records 1. Material M1 - Plant 1000 - Vendor A - Net Price Rs.4 2. Material M1 - Plant 2000 - Vendor B - Net Price Rs.3 Ven

  • Installing 10R2 in Red Hat AS4.0

    I am trying to install the 10R2 in Red Hat AS4.0 but after the runInstaller check the patches it can not install and send this message : I can not write in the directory OraInstall< > the directory is write protected of the filesystem don't have enou

  • Copy with change source system

    Hi experts, I have 3 logical system in 2 R/3  server . Let say TEST(Developing&Testing:server 1) PRD (Production server 2)  and SIM (Simulation of PRD server 2). and  I have 2 BI server with respective logical system: BWD (Development) and BWP (Produ

  • Unity Sign-in Greeting

    We are a Unity 7.0 shop. We would like to customize the Unity Sign-in greeting where the electronic voice says "Enter your ID, followed by #". We have quite a bit of turnover and our Helpdesk always receives calls about users being confused about wha