Calling soap web service using stub

I have created a stub class from an existing BPEL process and want to write a small java client (ultimately to be used in a JSP).
The problem is that the generated stub creates the calling method with an Element parameter instead of a string that the web service needs. I have been playing around with the org.w3c.dom.Element and oracle.xml.parser.v2.XMLDocument classes to try to create an instance of Element to pass into the method but I'm having no success.
Has anyone had the same problem? What's the best way to go about this?
I'm using JDeveloper 10.1.2 and the BPEL is hosted on Apps Server 10.1.2.0.2
Thanks in advance..

I have created a stub class from an existing BPEL process and want to write a small java client (ultimately to be used in a JSP).
The problem is that the generated stub creates the calling method with an Element parameter instead of a string that the web service needs. I have been playing around with the org.w3c.dom.Element and oracle.xml.parser.v2.XMLDocument classes to try to create an instance of Element to pass into the method but I'm having no success.
Has anyone had the same problem? What's the best way to go about this?
I'm using JDeveloper 10.1.2 and the BPEL is hosted on Apps Server 10.1.2.0.2
Thanks in advance..

Similar Messages

  • Fault while calling a Web service using SOAP 1.2

    Hi ,
    I have created a simple PL/SQL web service using Jdeveloper from PL/SQL using SOAP 1.2.
    But while i call that from PL/SQL, i am getting a version mismatch.
    While the same service created from SOAP 1.1 is working fine.
    Can anyone Help???

    Yip - Acrobat or Reader Extensions are needed.
    Try right click on the PDF and open in Internet Explorer and try your submit (hopefully the domain is trusted)

  • How to send authentication information to SOAP Web Service using MATE framework

    Hi,
    Can anyone please tell me how to pass authentication info (such as user name & password) while calling a webservice using MATE's webserviceinvoker? the SOAP web service expects authentication info in the header.
    Thanks in advance..

    HI Swayam,
    First of all you should tell us what blogs you have seen to avoid you to repeat information that you already know.
    we want to avoid  setting up SLD configuration for sender system because  sender system is just consuming web service .
    This is not necessary,
    Please let me know  the ways we can configure . I did understand we can publish and register the WSDL from Service interface ,but was not clear on over all  scenario .
    Do you have your ECC webservice available via SOAManager?, you only to access it via soap receiver in SAP PI.
    To publish, you need to publish only the sender SOAP, when you register there the sender soap your partner could access there to get the WSDL (Publish services from PI 7.1 to the Service Registry). Also you can generate directly the wsdl (Display WSDL - Integration Directory - SAP Library), what do you want?
    Regards,

  • Call MTOM web service using pl/sql (utl_http)

    Hi All,
    Is anyone able to call a MTOM web service using utl_http from pl/sql ?
    A typical request looks like this:
    --uuid:fd1fbed8-7042-4673-a304-becc1ffb037f+id=1
    Content-ID: <http://tempuri.org/0>
    Content-Transfer-Encoding: 8bit
    Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body>......</s:Body></s:Envelope>
    uuid:fd1fbed8-7042-4673-a304-becc1ffb037f+id=1
    A microsoft C# tool is provided to generate some requests and using fiddler I can see the content type is in the header as well as in the request. In the requests it doesn't contain the UID. Connection is set to keep-alive, is that possible using pl/sql ?
    The part that builds the header looks like:
    l_http_request := UTL_HTTP.begin_request(url => 'http://' || l_host_name || ':' || l_port || '/CRUDService.svc', method => 'POST', http_version => 'HTTP/1.1');
    UTL_HTTP.set_header(l_http_request, 'Host', l_host_name || ':' || l_port);
    UTL_HTTP.set_header(l_http_request, 'SOAPAction', '"action"');
    UTL_HTTP.set_header(l_http_request, 'Content-Length', LENGTH(l_string_request));
    UTL_HTTP.set_header(l_http_request, 'Content-ID', '<http://tempuri.org/0>');
    UTL_HTTP.set_header(l_http_request, 'Content-Transfer-Encoding', '8bit');
    UTL_HTTP.set_header(l_http_request, 'Content-Type', 'multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:fd1fbed8-7042-4673-a304-becc1ffb037f+id=1";start-info="text/xml"');
    I've played with the request by adding or removing information, the http response is (400) "Bad Request - Invalid Header", so should be somewhere in the header? Anyone ideas?
    Kind regards,
    Michiel

    HI Michiel
    I am also trying to achieve something similar to that. I am trying to call a web service that sends an xml attachment over MTOM? Kindly, let me know if this was achievable from your end? I mean how did the issue got resolved.
    thanks
    vijay

  • How can I call a web service using JAVAscript in LCD

    hi guys,
         I know it can call a WSDL in LCD, but I have not any WSDL web service , and I have a REST web service ,how can I call this REST web service in LCD? I checked some documents and found nothing...if it's possible that it can call a REST web service using JAVAScript code, I mean I can program some code to call this web service ?
    thanks,
    Jesse

    Hi Jesse,
    You can do GET, PUT and POST using FormCalc, so you should be able to access a REST web service. 
    There is a example of accessing a RSS feed in this thread, http://forums.adobe.com/message/5695433#5695433
    Regards
    Bruce

  • Calling a web-service using JAX-WS client on the browser

    Hi,
    I created a basic web-service using netbeans/glassfish, which can be successfully called from a JavaFX application running stand-alone.
    But when I try to run the same JavaFX application on a browser, the web-service call does not work, and it is hard to get any information on where it is failing.
    I can see the error is a Throwable (not an Exception), but the message is null.
    What are the restrictions on being able to call a webservice using the JAX-WS libraries? Are there security issues? I am not using the javafx HTTP libraries.
    Also, if Java1.6u10 is available on the machine running the browser, do I still need to package all the JAX-WS libraries for the client?
    Any help is appreciated, even if it is just about how to track down the problem.

    Thank you very much for responding.
    There was no error due to WebService. Actually, I was using xmlbeans and I did not put those xmlbeans jar files into appropriate place. That is what caused the problem. I have solved it now and it is working fine.
    I put those xmlbeans jar files into my war file. It is working. Earlier, I had put them in tomcat 5.5's shared/lib directory. It was not working.
    Thank you once again for replying.
    Sasi.

  • Calling a web service using UTL_DBWS

    Hello,
    I am trying to call a web service froma PL/SQL procedure using UTL_DBWS. I've been able to use a different method to determine that the web service is working correctly, so I know my problem is somewhere within my UTL_DBWS call. It seems like my call to the web service is not authenticating correctly. What I would like to do is be able to take a look at the XML header that is created by UTL_DBWS based on the parameters I have supplied, in order to ensure that everything is correct. Does anyone know a way to do this?
    Thanks,
    Jason

    Hello,
    I am trying to call a web service froma PL/SQL procedure using UTL_DBWS. I've been able to use a different method to determine that the web service is working correctly, so I know my problem is somewhere within my UTL_DBWS call. It seems like my call to the web service is not authenticating correctly. What I would like to do is be able to take a look at the XML header that is created by UTL_DBWS based on the parameters I have supplied, in order to ensure that everything is correct. Does anyone know a way to do this?
    Thanks,
    Jason

  • Calling a web service using a wsdl

    I am trying to access a web service from a button in Lifecycle Designer.  I have successfully done the following:
    1.  added a Data Connection that connects to the web service via a wsdl file
    2. dragged the request, response, and button items onto the form.  The button correctly reflects the web service location.
    When I enter data into the request boxes (which works from another place calling the web service) and click the button, I expect the call to the web service to return the response into the response text box, but nothing happens.  No error is reported.
    I have confirmed that the web service is “Document/Literal”.
    Does anyone have any ideas?
    Thanks.

    Yip - Acrobat or Reader Extensions are needed.
    Try right click on the PDF and open in Internet Explorer and try your submit (hopefully the domain is trusted)

  • Is it possible to call asynchronous Web Service using Adaptive WS model?

    Hello,
    I was trying to call asynchronous web service and after execution exception has arised
    java.lang.NullPointerException
        at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.fillOutputParametersToMc(WSGenericModelClassExecutable.java:281)
        at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.execute(WSGenericModelClassExecutable.java:93)
        at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClassExecutable.execute(WSTypedModelClassExecutable.java:46)
        at at.gov.bmf.demo.comp.employee.EmployeeDemo.ok(EmployeeDemo.java:242)
        at at.gov.bmf.demo.comp.employee.wdp.InternalEmployeeDemo.ok(InternalEmployeeDemo.java:285)
    I have NWDS 7.0.
    How can I set model, to avoid binding web service response to model?
    Thanks.

    I just ran into this issue, same exact problem.
    The quick and dirty workaround I did, after trying out several other things to make sure I didn't do anything wrong to cause this problem, was to just catch the nullpointer, and then go along my merry way.
    try{
         query.execute();     
    catch(NullPointerException e){
         //we get a worthless error here from Webdynpro, so we just ignore it. Not pretty. But unavoidable
    If someone else has any other solution, I would love to hear them.
    This is on NW7.0 SP15
    /Björn

  • Calling SOAP Web Service in dynpro?

    Hello,
    I have configured the XI to exchange data from an external soap and exposed its web service through wsdl file. Now I want to call the service in my model for dynpro application but when I define the adaptive web service model it gives me error but returns status code 200.
    Can I call the XI service directly using Java Code, I would be thankful if you guide me how establish the dynpro and XI web service communication.
    regards,
    Jawed Ali

    Thats what my problem is Murtuza. I have created the adaptive webservice model as I am using latest version of the EP and NWDS. The plain Web service model is now deprecated, so I have to model the XI webservice using adaptive web service model.
    The deprecated web service model, used to provide some proxy classes generation mechanism which the new adaptive model doesn't provide. I have tested my XI webservice WSDL file using XML Spy and its giving me correct output but the adaptive webservice model gives me the error, which I described in my first post.
    I hope I have cleared my point, if you need any thing else to know let me know.
    I created and deployed the web service proxy client and trying to call it using the java code but it also gives me ClassCastException when executing following code to call XI webservice using webservice client proxies:
         InitialContext ctx = new InitialContext();
         Object obj = ctx.lookup("/wsclients/proxies/sap.com/PBWSProxy/com.pso.prototype.PBWSXIProxy");
         sResult = obj.getClass().toString();
         MI_CHK_ACC_OUTService service = (MI_CHK_ACC_OUTService) obj;
         MI_CHK_ACC_OUT stub = (MI_CHK_ACC_OUT)service.getLogicalPort();
         stub._setProperty("javax.xml.rpc.security.auth.username", "pisuper");
         stub._setProperty("javax.xml.rpc.security.auth.password", "lotus123");
         sResult=stub.MI_CHK_ACC_OUT("0000104851", "1100");               
    line:
    <b>MI_CHK_ACC_OUTService service = (MI_CHK_ACC_OUTService)</b> obj;, throwing exception after debuggin I found MI_CHK_ACC_OUTServiceImpl file the code is looking for but I don't have any definition for this class, as the proxy I created doesn't provide any such class. Any idea from where I can find the class definition for MI_CHK_ACC_OUTServiceImpl?

  • Ajax call soap web service

    Hi,
    I would like to find sample code for web service call from javascript using ajax.
    Can anyone help?
    For example:
    $(document).ready(function(){
    $("#test").click(function(){
    var soapRequest = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:typ=\"http://schemas.novell.com/2005/01/GroupWise/types\" xmlns:met=\"http://schemas.novell.com/2005/01/GroupWise/methods\">"
    + "<soapenv:Header>"
    + "<typ:gwTrace>true</typ:gwTrace>"
    + "</soapenv:Header>"
    + "<soapenv:Body>"
    + "<met:loginRequest>"
    + "<met:auth type=\"types:PlainText\">"
    + "<typ:username>xren</typ:username>"
    + "<typ:password>xxxx</typ:password>"
    + "</met:auth>"
    + "<met:version>1.04</met:version>"
    + "<met:application>Ebase</met:application>"
    + "<met:userid>true</met:userid>"
    + "<met:system>true</met:system>"
    + "</met:loginRequest>"
    + "</soapenv:Body>"
    + "</soapenv:Envelope>";
    alert(soapRequest);
    $.ajax({
    type: "POST",
    url: "http://192.168.245.173:7191/soap",
    dataType: "xml",
    contentType: "application/xml; charset=utf-8",
    data: soapRequest,
    success: function(xml){ alert("ok"); alert(xml);},
    failuer: showError
    Thanks,
    Xiaoli

    I had some issues with using javascript.
    Here is what I did sometime ago:
    ftp://ftp.novell.com/outgoing/jsClient.zip
    Here is also a version using php:
    ftp://ftp.novell.com/outgoing/htmlClient.zip
    These are pretty much as is.
    I'm not sure I can give you much help.
    Preston
    >>> On Monday, September 29, 2014 at 8:26 AM,
    xren<[email protected]> wrote:
    > Hi,
    >
    > I would like to find sample code for web service call from javascript
    > using ajax.
    >
    > Can anyone help?
    >
    > For example:
    >
    > $(document).ready(function(){
    >
    > $("#test").click(function(){
    >
    > var soapRequest = "<soapenv:Envelope
    > xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"
    > xmlns:typ=\"http://schemas.novell.com/2005/01/GroupWise/types\"
    > xmlns:met=\"http://schemas.novell.com/2005/01/GroupWise/methods\">"
    > + "<soapenv:Header>"
    > + "<typ:gwTrace>true</typ:gwTrace>"
    > + "</soapenv:Header>"
    > + "<soapenv:Body>"
    > + "<met:loginRequest>"
    > + "<met:auth type=\"types:PlainText\">"
    > + "

  • Issue with Calling Rest Web Service using Designer workflow

    Hello all
    I am calling a Rest web service- HTTP Post (yammer API)-
    http://www.yammer.com/api/v1/messages.json?data-app-id=myappid&group_id=groupid&body=MyPost in yammer  using sharepoint 2013 designer workflow.(My Requirement is to create a yammer post when I approve an item in sharepoint).
    but my header parameters are creating issue while executing workflow.
    Currently I have these many parameters configured in request header
    Accept -application/json; odata=verbose
    Content Type -application/json; odata=verbose
    content length header -255
    Is there anything wrong or I need to additionally pass some values in call web service action?
    Any help would be highly appreciated

    Hi Mahesh,
    One you are missing is authentication token or credentials.
    Please refer to the following articles.
    http://www.cleverworkarounds.com/2014/02/05/tips-for-using-spd-workflows-to-talk-to-3rd-party-web-services/
    A Series of articles related to Web Service in SPD Workflow
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 1
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 2
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 3
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 4
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 5
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 6
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 7
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 8
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 9
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 10
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 11
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 12
    Please don't forget to mark it answered, if your problem resolved or helpful

  • Not able to call BPEL web service using RMI call from different machine

    Hi,
    1. I have created a smiple Helloworld asynchoronous BPEL process
    2. I am able to call that BPEL process using java program (RMI call) which I have written in JDeveloper 10.1.3.3 and the java program is running in the embeded OCJ4 instance of JDeveloper sucessfully.
    3. Now I am trying to run the same Java program in my unix machine where oracle application is installed.
    4. I have set all the CLASSPATH for required jars which I have used in JDeveloper and also kept the jar file in Unix machine.
    5. The java codes are complied successfully.
    6. But when I am trying to run it , getting the following exception:
    bash-3.00$ java HelloworldAsyn
    name is Debkanta
    property file data are: {java.naming.provider.url=opmn:ormi://172.18.19.169:6003:home/orabpel, java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory, orabpel.platform=ias_10g, java.naming.security.principal=oc4jadmin, java.naming.security.credentials=welcome1}
    hello3
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
    at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)
    at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
    at HelloworldAsyn.main(HelloworldAsyn.java:64)
    at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
    at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
    at HelloworldAsyn.main(HelloworldAsyn.java:64)
    bash-3.00$
    I need to solve it urgently. Can anyone please help me.
    Is it relaed to some user access issue in unix?
    Thanks & Regards
    Deb
    Message was edited by:
    user587916

    actually , I have laready given print stataement for the data in the context property file that you can see in the output. Today I am also able to call the bpel process using the same java program from my DOS command promt(cmd). Don't understand why the problem is occuring in unix.
    please help.

  • Service Instance remains active when calling Web Service using WCF-BasicHttp binding

    I am trying to call a web service using ESB ToolKit using a dynamic send port. The message went through all the pipeline components successfully. However, after the message is picked up by the WCF adapter, the service instance remains in "Active"
    status, and then eventually it dehydrates itself. There's no error in the event log at all. Have anyone seen this problem before? If so, what is the solution?
    I tried using a static send port with exactly the same configuration and the message reaches the web service successfully and got the response back.
    Please note the web service is RPC-Style web service, not sure if it makes a difference.
    Here is the configuration for the static send port
    <Address>http://myserver:8088/mockLoadDataBinding</Address><TransportType Name="WCF-BasicHttp" Capabilities="899" ConfigurationClsid="467c1a52-373f-4f09-9008-27af6b985f14" />
    <TransportTypeData>
    <CustomProps>
    <InboundNodeEncoding vt="8">String</InboundNodeEncoding>
    <MessageEncoding vt="8">Text</MessageEncoding>
    <ServiceCertificate vt="8" />
    <InboundBodyPathExpression vt="8">//*[local-name()='return']/node() | //*[local-name()='SecurityException']</InboundBodyPathExpression>
    <OutboundBodyLocation vt="8">UseTemplate</OutboundBodyLocation>
    <StaticAction vt="8" />
    <InboundBodyLocation vt="8">UseBodyPath</InboundBodyLocation>
    <ProxyAddress vt="8" />
    <MaxReceivedMessageSize vt="3">65536</MaxReceivedMessageSize>
    <ClientCertificate vt="8" />
    <AlgorithmSuite vt="8">Basic256</AlgorithmSuite>
    <ProxyUserName vt="8" />
    <OutboundXmlTemplate vt="8">&lt;web:loadData soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:web="http://www.company.com/webservices" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;input xsi:type="xsd:string"&gt;&lt;bts-msg-body xmlns="http://www.microsoft.com/schemas/bts2007" encoding="string"/&gt;&lt;/input&gt;&lt;/web:loadData&gt;</OutboundXmlTemplate>
    <TextEncoding vt="8">utf-8</TextEncoding>
    <PropagateFaultMessage vt="11">-1</PropagateFaultMessage>
    <SecurityMode vt="8">None</SecurityMode>
    <ProxyToUse vt="8">Default</ProxyToUse>
    <TransportClientCredentialType vt="8">None</TransportClientCredentialType>
    <OpenTimeout vt="8">00:01:00</OpenTimeout>
    <UseAcsAuthentication vt="11">0</UseAcsAuthentication>
    <MessageClientCredentialType vt="8">UserName</MessageClientCredentialType>
    <UseSSO vt="11">0</UseSSO>
    <CloseTimeout vt="8">00:01:00</CloseTimeout>
    <SendTimeout vt="8">00:01:00</SendTimeout>
    </CustomProps>
    </TransportTypeData>
    here is the configuration for the dynamic send port (using BRE Resolver)
    Set Endpoint Outbound TransportType to WCF-BasicHttp
    Set Endpoint Outbound TransportLocation to http://myserver:8088/mockLoadDataBinding
    Set Endpoint Message Exchange Pattern to Solicit-Response
    Set EndPoint WCF Action to <empty string>
    Set Endpoint Config to InboundNodeEncoding=String&amp;MessageEncoding=Text&amp;InboundBodyPathExpression=//*[local-name()='return']/node() | //*[local-name()='SecurityException']&amp;OutboundBodyLocation=UseTemplate&amp;StaticAction=&amp;InboundBodyLocation=UseBodyPath&amp;MaxReceivedMessageSize=65536&amp;AlgorithmSuite=Basic256&amp;OutboundXmlTemplate=&lt;web:loadData 
    soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  xmlns:web="http://www.company.com/webservices" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;input xsi:type="xsd:string"&gt;&lt;bts-msg-body xmlns="http://www.microsoft.com/schemas/bts2007"
    encoding="string"/&gt;&lt;/input&gt;&lt;/web:loadData&gt;&amp;TextEncoding=utf-8&amp;PropagateFaultMessage vt="11">-1&amp;SecurityMode=None&amp;ProxyToUse=Default&amp;TransportClientCredentialType=None&amp;OpenTimeout=00:01:00&amp;UseAcsAuthentication=False&amp;MessageClientCredentialType=UserName&amp;UseSSO=False&amp;CloseTimeout=00:01:00&amp;SendTimeout=00:01:00
    Set Endpoint Target Namespace to
    http://www.company.com/webservices

    Thanks Birdsven,
    I updated the Resolver policy to as follows, and still I am getting the same result.
    <then>
    <function>
    <vocabularylink uri="95dced57-5e9b-4dbe-9cd8-4b166853dd8a" element="4ad331d0-820c-41cb-a98e-7e1f5a9d5360" />
    <classmember member="set_TransportType" sideeffects="true">
    <classref ref="Resolution" />
    <argument>
    <constant>
    <string>WCF-BasicHttp</string>
    </constant>
    </argument>
    </classmember>
    </function>
    <function>
    <vocabularylink uri="95dced57-5e9b-4dbe-9cd8-4b166853dd8a" element="20652bdd-c1f2-4b75-9e6b-7e20af98e66d" />
    <classmember member="set_MessageExchangePattern" sideeffects="true">
    <classref ref="Resolution" />
    <argument>
    <constant>
    <string>Solicit-Response</string>
    </constant>
    </argument>
    </classmember>
    </function>
    <function>
    <vocabularylink uri="95dced57-5e9b-4dbe-9cd8-4b166853dd8a" element="9357b8ea-3663-4625-9681-a2fc2f423911" />
    <classmember member="set_TransportLocation" sideeffects="true">
    <classref ref="Resolution" />
    <argument>
    <constant>
    <string>http://myservice.com:8089/loadDataService</string>
    </constant>
    </argument>
    </classmember>
    </function>
    <function>
    <vocabularylink uri="95dced57-5e9b-4dbe-9cd8-4b166853dd8a" element="9c97e7a0-d119-4b0d-8e39-2b281ae6ef8d" />
    <classmember member="set_Action" sideeffects="true">
    <classref ref="Resolution" />
    <argument>
    <constant>
    <string>{loadData}</string>
    </constant>
    </argument>
    </classmember>
    </function>
    <function>
    <vocabularylink uri="95dced57-5e9b-4dbe-9cd8-4b166853dd8a" element="2829f1b7-09c0-4396-b82e-23fd65d8439c" />
    <classmember member="set_EndpointConfig" sideeffects="true">
    <classref ref="Resolution" />
    <argument>
    <constant>
    <string>InboundNodeEncoding=String&amp;MessageEncoding=Text&amp;ServiceCertificate=&amp;InboundBodyPathExpression=//*[local-name()='return']/node() | //*[local-name()='SecurityException']&amp;OutboundBodyLocation=UseTemplate&amp;StaticAction=&amp;InboundBodyLocation=UseBodyPath&amp;ProxyAddress=&amp;MaxReceivedMessageSize=65536&amp;ClientCertificate=&amp;AlgorithmSuite=Basic256&amp;ProxyUserName=&amp;OutboundXmlTemplate=&lt;web:loadData soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:web="http://www.mycompany.com/webservices" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;input xsi:type="xsd:string"&gt;&lt;bts-msg-body xmlns="http://www.microsoft.com/schemas/bts2007" encoding="string"/&gt;&lt;/input&gt;&lt;/web:loadData&gt;&amp;TextEncoding=utf-8&amp;PropagateFaultMessage=True&amp;SecurityMode=None&amp;ProxyToUse=Default&amp;TransportClientCredentialType=None&amp;OpenTimeout=00:01:00&amp;UseAcsAuthentication=False&amp;MessageClientCredentialType=UserName&amp;UseSSO=False&amp;CloseTimeout=00:01:00&amp;SendTimeout=00:01:00</string>
    </constant>
    </argument>
    </classmember>
    </function>
    <function>
    <vocabularylink uri="95dced57-5e9b-4dbe-9cd8-4b166853dd8a" element="54624479-caea-4228-86b9-fbe188a8c64d" />
    <classmember member="set_TargetNamespace" sideeffects="true">
    <classref ref="Resolution" />
    <argument>
    <constant>
    <string>http://www.mycompany.com/webservices</string>
    </constant>
    </argument>
    </classmember>
    </function>
    </then>

  • Basic authentication when calling a web service

    I am attempting to call a web service using ActionScript. The
    web service provider requires that I use HTTP Basic Authentication
    to communicate my SOAP requests. I cannot seem to get this done in
    ActionScript. If I instantiate a WebService object and call its
    SetCredentials method, I get an error "Authentication not supported
    on DirectHTTPChannel (no proxy)". I have the WebService object's
    useProxy property set to true. HELP!

    I know this is five years later on this forum but there's no solution here or on any other forum.  So after two day's of hammering this out I was able to produce a workable solution.  Create a new user account for testing.
    Wu_Xiao's explanation of the issue was dead on.  The WebService does a GET then a POST and for the GET we are unable to supply the Authorization in the header and this is why we get the popup. The POST has the Authorization but it already to late. 
    Take these actions
    1 Create a new user on the machine with the web services. Start with a simple name and password (text only)  I had issues with different users. Start clean and simple.
    2 Copy your web services a second usable service.  You'll see in my example below i have Ive copied  ServicesSECURE/Services1.asmx?WSDL to ServicesDEFINITION/Services1.asmx?WSDL
    3 Remove all of the code inside of your services making the new set of service like a definition service. Make sure all of the inputs and outputs are the same. ServicesDEFINITION will have no coding and empty returns.
    Example  
    [WebMethod]
            public String CountUsers(string group)
                return "";
    4 Implement the code below. Call the init() right away to instantiate the web service and wait until it loads to use any of the services.  I use a button event to test.
    private var testws:WebService = new WebService;
      private function init():void
      testws.wsdl="http://test.com/ServicesDEFINITION/Services1.asmx?WSDL";
      var encoder:Base64Encoder= new Base64Encoder();
      encoder.insertNewLines = false; // see below for why you need to do this
      encoder.encode("USERNAME:PASSWORD");
      testws.httpHeaders = {Authorization:" Basic " + encoder.toString()};
      testws.loadWSDL();
      testws.addEventListener("load", wsdlLoadHandler);
      protected function test_clickHandler(event:MouseEvent):void
      testws["CountUsers"].addEventListener(mx.rpc.events.FaultEvent.FAULT,testFaultHandler);
      testws["CountUsers"].addEventListener(mx.rpc.events.ResultEvent.RESULT,testResultHandler) ;
      testws.endpointURI="http://test.com/ServicesSECURE/Services1.asmx?WSDL";
      testws.getOperation("CountUsers").send("Test");
      protected function wsdlLoadHandler (event:LoadEvent) : void
      //the service has to load before using the getOperation function
      //you could try using mx.core.UIComponent.callLater from
      //this listener and call the gettestws.getOperation("Co....
    So you'll see that the ServicesDEFINITION (GET) is called and grabs the definition of the Service1 service but this unsecured services is useless because we've removed all of the code.  After the definition GET is called we can change the end point using endpointURI and perform the POST against our secure ServicesSECURE.

Maybe you are looking for

  • Problem in PO Closing

    Closing of the Purchase Orders The change is to be made for the field  ELIKZ Delivery completed indicator. All the open purchase orders are to be closed. But the material group of the materials has been changed so the system is issuing the message  M

  • How to find out all the text elements in the report using Java?

    How to trace the contents of an rpt file? I am able to open the rpt file in my report viewer but can not trace it using the JAVA code. Actually, I need to find out all the text elements of rpt (Report) file and replace them with the contents of resou

  • My trackpad is not aligned with the body

    Hello Experts, I have a macbook pro late 2011, running on 10.8.4. I've noticed months ago that my trackpad seems like its been pressed so hard on the right side making is sink on the body, this makes the left side hanging abit outside the body. This

  • Need error notification by email.

    Hi ,        I need to develop a ZEE function module which can be used for all inbound procees to send an E-mail notification . The recipent list , Subject , body of E-mail will be store in the Zee table and Activate and Deactivate button for the pati

  • PDF Dokument zeigt mir eingebettete Untergruppen von Schriften die ich im Indesign Dokument nicht fi

    Hallo, ich benutze Indesign CS7 habe ein Dokument erstellt in dem Schriften waren, die ich nicht hatte. Die Schriften waren in Illustratorzeichnungen, die ich dann in Illustrator geöffnet habe und sie dann in Pfade umgewandelt habe. Danach hatte ich