Consuming webservice WSDL

Hello

Using jdeveloper 11.2.3.0.

I consumed the webservice using the "Webservice WSDL Java" option. He created SampleMethodImpl.java which has 2 methods add (int a, int b) and sub (int a, int b).

I call Add (int a, int b) in my EOImpl.java class.

Kind regards

Prasad K T,.

Here are some tips on how to do

https://blogs.Oracle.com/middleware/entry/calling_web_services_using_adf_11g

Antonis Antoniou blog: integration of Web Services in your ADF Application Part 1

and the doc http://docs.oracle.com/cd/E17904_01/web.1111/b31974/web_services.htm#ADFFD5340

Timo

Tags: Java

Similar Questions

  • Conversation Webservice WSDL for cause of Java

    HELO,

    We seek to generate classes from webservice wsdl conversation using apache axis and throws below error

    Error in the generation of Java from WSDL: org.apache.axis.wsdl.toJava.DuplicateFileException: duplicate file name:.metadata\.plugins\org.eclipse.jst.ws.axis.consumption.core\temp6338294140660095834\com\endeca\www\MDEX\conversation\_3\_0\DimensionValue.java

    Someone at - he succeeded using this webservice in ES7.6? What do we lack?

    Thank you

    VJ

    VJ,

    Please see also this thread:

    https://community.Oracle.com/thread/2455916?start=0&TSTART=

    The last message that it says the following:

    I actually use for Java Axis2 and I discovered that the Axis wsdl2java emitter was not generate all classes of complex types using the default Bad. However, once I changed to xmlbeans data binding, all classes were created and according to your statement (which in reality was formatted well :)), I got it to work.

    Here is a link to apache:

    http://axis.Apache.org/Axis2/Java/core/docs/Userguide-creatingclients-XMLBeans.html

    Julia

  • Consume Webservice - java.io.IOException: General socket error

    Hey,.

    I'm trying to consume a webservice ( www.webservicex.net, but also tried other forecasts) with a smart blackberry phone, but I still have a java.io.IOException.

    I generated stubs with the Java Wireless Toolkit 2.5.2. Now, I call the heel of the Java application.

    My MDS is running and are configured for use with my proxy. I can view each page with the built-in browser.

    The call of the stub works like this:

    public class BB_WeatherStart extends MainScreen {
    
       public BB_WeatherStart() throws RemoteException {
        com.weather.WeatherForecasts weather = null;
        WeatherForecastSoap_Stub stub = new WeatherForecastSoap_Stub();
        weather = stub.getWeatherByZipCode("10024");
    
        LabelField longi = new LabelField();
        longi.setText("Longitüde" + weather.getLongitude());
        add(longi);
    
        LabelField status = new LabelField();
        status.setText("Status" + weather.getStatus());
        add(status);
       }
    
    }
    

    The instantiation of the stub works, but the call of the method getWeatherByZipCode returns this exception.

    This is the code for the method:

    public com.weather.WeatherForecasts getWeatherByZipCode(java.lang.String zipCode) throws java.rmi.RemoteException {
    
       Object[] inputObject = new Object[1];
       inputObject[0] = zipCode;
    
       Operation op = Operation.newInstance(_qname_GetWeatherByZipCode, _type_GetWeatherByZipCode, _type_GetWeatherByZipCodeResponse);
       _prepOperation(op);
       op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "http://209.162.186.60/GetWeatherByZipCode;deviceSide=true");
    
       Object resultObj;
       try {
          resultObj = op.invoke(inputObject);
       } catch (JAXRPCException e) {
        throw e;
       }
    
    //Snip.. the Rest of the method is never reached ;)
    
    }
    

    The Exception is thrown in the call to op.invoke (inputObject);

    I also tried the hostname instead of IP address, but then I get a j "" ava.io.IOException: bad DNS address "and if I try without the"; " deviceSide = true' I get the message "Local port: 19780 APN:"rim.net.gprs"APN username: password 'null' AFN: there is no connection"null"

    Thanks for your help

    Tina

    After watching a little I don't think that the original problem was with the connection I think it is related to a null value returned by the web service.  I generated a set of stubs from the web service, you were using and tried with the same result as you.  I got a version of 4.5 and made some settings (I don't specifically know who he was) and the error has become ' java.rmi.MarshalException: nillable not element of array in response type is not met. ".  Went up to version 4.7 and here it works very well.  If you run this with a test tool web service call, you see a null of WeatherData to the bottom element which is the likely culprit.  I read somewhere that BB do not have NULL values in some earlier versions.

    hope that helps.

    T

  • Consuming webservice with widget Blackberry - Visual Studio dotnet

    Hi team,

    I have developed a webservice in ASP.NET and consumed it in using the Blackberry application

    HTML/JAVASCRIPT with XML HTTP REQUEST. It works very well and gives the O/P expected only when the

    Web service runs in LOCALHOST. When it's hosted Web service on a different server, I have m

    access with browser.but through the application of BLACKBERRY, unable to get the answer.

    Hearing from friends that JAVASCRIPT cant directly consume not on Web services

    LOCALHOST and the fact using WEBSERVICE behaviors (downloaded webservice. HTC) and

    After writing all the code, and then the debug gives the error to the so-called CALLSERVICE method

    undefined function , I guess that BB doesnot support webservice behavior option.

    Thus, even tried with the approach by JQUERY. It gives an error: external resources error requested resource and doesnot even run with LOCALHOST as well.

    Please help me the way out...

    Kind regards

    GOUSSARD

    Hey! I thought I did, but no jajaja

    I added the http://192.168.1.114:90 address to areas in the config.xml file an it worked!

    Yeiiii! I am so happy

    Thanks for your reply.

  • Call a Webservice (wsdl) of external SOA when the document is released

    Hi all

    I use Oracle Webcenter Content (UCM) Version:11.1.1.9.0PSU - 2015-08-20 12:15:05Z - r132912 (Build: 7.3.5.185).

    When I save in document to AAU, he goes through the workflow for approval and after approval of content is released.

    All approvals completed then it must run Web SOA (wsdl) service calls and pass the content ID.



    Please help in this regard.


    You can use the integration of the University Complutense of MADRID BPEL component.

    You need to create a composite simple to consume the web service in SOA and call this composite of the AAU

  • A link in an e-mail message to consume webservice database

    OK, that's what I want to achieve.
    I want to have a letter to be sent to customers with 2 buttons inside: YES/No.
    By clicking on these buttons, the answer must be stored in the database and the user should find themselves on a page that told him we recorded his response.

    What I have:
    I have a stored procedure that records the feedback from users.
    I exposed this procedure as a Web service (follow this procedure: http://www.oracle-base.com/articles/11g/native-oracle-xml-db-web-services-11gr1.php)
    I can see my WSDL successfully.

    Now, I have some questions on how to continue on this point on:
    (1) is there a good thread/blog/article that explains what security measures, I must take to protect this webservice and avoid SQL injection or other malicious software. Suggestions appreciated.
    (2) when I wanted to test the Web service by accessing using a URL I get ORA-1011 (similar to [this metric | https://forums.oracle.com/forums/thread.jspa?messageID=10282165] I found this thread, but it really does not give a solution to the problem)
    (3) at this point, I have absolutely no idea on how to achieve the user will end up on a confirmation page during his speech is recorded.

    Thanks for your advice!

    You need an Apache (httpd Oracle Server) server with Oracle's Apache module called mod_plsql. Or you need to set up http access to Oracle directly to the database by using a feature called EPG.

    Are you familiar with?

    As for the part of the web-enabled procedure. PL/SQL procedure, but can read the presentation of web browser (CGI variables, cookies read) and interact with the web browser (writing a cookie, send an HTML page, image, XML or or whatever).

    The simplest of the Internet procedure is something like this:

    // let's pretend the proc is created in the SCOTT schema
    create or replace procedure HelloWorld( name varchar2 default null ) is
    begin
      if name is null then
        htp.prn( 'Hello World' );
      else
        htp.prn( 'Hello '||InitCap(name) );
      end;
    end;
    
    // web (Apache mod_plsql) access to Oracle is via the
    // ANONYMOUS schema for example - so we need to
    // allow that schema to execute our proc
    grant execute on HelloWorld to ANONYMOUS;
    

    The name argument is optional. Then the web browser can refer to the procedure of extension web as follows:

    http://my-web-server.mydomain.com:8080/orcl/scott.helloworld
    

    This request will display an HTML page that contains the sentence "+ Hello World" +.

    The name argument can be used by the web browser. For example

    http://my-web-server.mydomain.com:8080/orcl/scott.helloworld?name=john
    

    This request will display an HTML page that contains the sentence "+ Hello John." + "

    So the call interface ito arguments and parameters available, works exactly as when you call a stored procedure from another client such as SQL * more.

    The only downside is that the browser passes name-values as string parameters, to the query string, it supports with the URL at Apache. This means mod_plsql gets only the values of string as parameter values - and these must be implicitly converted into date or number data types if your procedure parameters using these data types.

    It is advisable to rather to set all the parameters as the string and in your procedure, data type conversion and control, and exception management.

    Bottom line. A web procedure activated differs very little from a normal procedure and can do everything a normal procedure can do (treatment ito). The only real limitation is above mentioned client-passing-all-parameter-values-as-strings question. And the only difference is that a compatible web can actually write the output (any payload valid Mime support in HTML) in the client - which means that your process can generate dynamic web pages, dynamic content such as CSV and XML and so on.

  • consume WebService

    I want to consume a Web created with SAP XI service.

    When I call this Web service I get the message: could not generate objects stub for the call to the web service.

    I tested the webservice consume in order to investigate the message you:
    When I call a Web service to a "annonimous' he's fine

    When I call a webservice even at a virtual card "authetication integrated windows" it won't with the same message

    When I enter the username and password that nothing has changed

    I can't save this a webservice in the coldfusion administrator: error service error creating web. Please ensure that you have entered a Web Service name or the correct URL.

    CF does not support integrated Windows authentication. Thus, CFINVOKE cannot make HTTP connection.

  • Problem with WebService WSDL

    Hi all.

    I have a component that calls a Web service to fill some labels - very simple really. However, I do not want to hardcode the wsdl in the code string - I want to be able to be driven from an xml file in the same folder as the swf file. There is no problem reading the value from the XML using an HTTPService (I can get it to display successfully on a label, for example), but when I try to use this value for the wsdl of the Web service I get the following error: "cannot access a property or method of a null object reference. The two send() functions are called on the event creationComplete of the Panel container, one immediately after the other - is there something I need to do between the two? I know that the Web service works because I can call from a button - but I can not put a button - I need to all be done automatically.

    Here is the code in question snippetts:

    "" < mx:Panel xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute".
    width = "280" height = "200" title = "Broker details"
    creationComplete = "{loadBrokerDetails (event)}" >

    < mx:Script >
    <! [CDATA]
    private void loadBrokerDetails(event: Event): void
    {
    Read in the location of the web service of the settings xml file
    xml_Settings.send ();
    Call the web service to retrieve the details of broker
    ws_SourceCommon.loadWSDL (xml_Settings.lastResult.Settings.SourceCommonWebService);
    ws_SourceCommon.getBroker.send (); Change of State of play the transition
    currentState = "DisplayState";
    }
    []] >
    < / mx:Script >

    <!-app settings XML (custom file created by our care) - >
    < mx:HTTPService id = url = "settings_BrokerDetails.xml" / "xml_Settings" >

    <! - web service to extract the broker details - >
    <!-I have tried to adjust the string wsdl here, but do not even have a mistake: it simply doesn't work->
    < mx:WebService
    ID = "ws_SourceCommon".
    useProxy = "false".
    showBusyCursor = "true" >

    <!--> Declaration of the method GetBroker
    < mx:operation name = "getBroker" >
    < mx:request >
    < brokerId > {selectedBroker} < / brokerId >
    < / mx:request >
    < / mx:operation >
    < / mx:WebService >

    Hi - Thanks for the response. You are absolutely right: I arrived at the end of my own - I now get faced with using events. Should have posted the answer myself but I forgot.

    Bravo anyway

  • ADF 12 c - create and consume WebService using SOAP and business components

    Hi all!

    I am trying to create two separate projects. One who creates Web services using the components of the company and another to consume these services.

    For now, I created the basic operations of VO (search, update, Get,...) and even a find with use of criteria.

    I can easily use the Get functions (by id), nor on the criteria to get a customer by one of his name.

    The problem is that I need a function to retrieve all customers (without any criteria) in a table, and then modify the selected customer, perhaps with the update function. I tried this but, there is no collection on the data control to do so.

    On the last days, in that I wanted a resolution to my problem but the tutorials I've seen, none seems to be exactly what I need. At least none that I could clearly understand it is being implemented.

    Can someone give me a hint or two on how to make this implementation using BC/SOAP?

    Off-topic question: is there an advantage over the use of SOAP on REST, since the REST seems to be faster due to the possibility of using JSON?

    Thank you!

    You can create the custom method in your AppModuleImpl class that presents the signature.

    Something like:

    public List getAllRecords(){
        List result = new ArrayList<>();
    
        ViewObject vo = getYourVO();
        vo.executeQuery();
        while(vo.hasNext()){
            ViewRowImpl row = (ViewRowImpl)vo.next();
            result.add(row);
        }
    
        return result;
    }
    

    And in the AM editor expose this method as part of your web service.

    Then in the other project to create this ws-based Web Service data control, call the getAllRecords() method (as method activity in some task flow, or drop it on the page as a button) and in the end, expand getAllRecords() day in data controls pane and drag and drop 'result' to your af:table page

    Dario

  • SoapUI Bam WebService

    Hello

    I tried to do the operation in batches, to insert using bam webservice Wsdl in soapUI but it gives BAM-06147: load invalid XML to the DataObjectOperations Web service



    WSDL, I use is: http://localhost:9001 / OracleBAMWS/WebServices/DataObjectOperationsByID

    SoapUi request payload

    < soapenv:Envelope xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/' xmlns:bam = "http://xmlns.oracle.com/bam" >
    < soapenv:Header / >
    < soapenv:Body >
    < bam:Insert >
    <!-in option: - >
    < bam:dataObject >/samples/used < / bam:dataObject >
    <!-in option: - >
    < bam:xmlPayload > < _Employees >
    Bray time < _Salesperson > < / _Salesperson >
    < _Sales_Area > EMEA < / _Sales_Area >
    < _Sales_Number > 12345 < / _Sales_Number >
    < / _Employees >
    < / bam:xmlPayload >
    < / bam:Insert >
    < / soapenv:Body >
    < / soapenv:Envelope >


    can someone help me solve this problem...

    Thanks in advance...

    Hello

    It is tricky, because bam:xmlPayload is actually typed xsd: String and xsd: all, so you should use CDATA


    <_Employees>
    <_Salesperson>Time Bray
    <_Sales_Area>EMEA
    <_Sales_Number>12345

    ]]

    See you soon,.
    Vlad

  • ATG WSDL access

    All-


    I am newbie to ATG, so bear with me on fundamental questions.

    We need to access the webservice ATG. I got an instance with port # ATG.

    As a first step, I try to get the WSDL for ex: createOrderFromXML. I just took this as for example WSL and tried suite

    -At Firefox using the url issued; http://localhost:18840 / trade/order/createOrderFromXML? WSDL.

    I'm a stateful HTTP 404 response page: resource request (order/trade/createOrderFromXML? WSDL) is not available.

    Am I missing a few steps here. Please help me to spend with pointers and steps to access the WSDL file.

    Also do I need to send the connection first call to access and then call the specific WSDL.

    Any help will be much appreciated.

    Thank you
    Harish Kumar

    Did you include the module of Web service you are trying to access your ear?
    For example: domain controllers. WebServices
    This includes the prepackaged webservices createOrderFromXML.

    Then access using url of webservice wsdl

    http:// hostname: port/trade/order/createOrder? WSDL

    and endpoint url will be

    http:// hostname: port/trade/order/createOrder/createOrder

    Hope this helps

    Thank you

  • Error creating the WSDL web service in 11.1.2.0.0

    Hello

    I just install JDeveloper 11.1.2.0.0. I tried to test a web service created (and tested successfully) in 11.1.1.5.0. The service is deployed on WebLogic Server internal but when I call 'Test Web Service' is the error I get:

    The tester of Web services can be invoked, because the WSDL for the service selected document cannot be read.

    java.lang.IllegalStateException: SSLContextImpl is not initialized.
    at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
    at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
    at oracle.jdevimpl.credential.LazySSLContextSpi.engineGetSocketFactory(LazySSLContextSpi.java:67)
    at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:398)
    to oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$ 1.initialValue(CachedWSDLReader.java:298)
    to oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$ 1.initialValue(CachedWSDLReader.java:294)
    at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
    at java.lang.ThreadLocal.get(ThreadLocal.java:131)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:308)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLDirect(CachedWSDLReader.java:471)
    to oracle.jdevimpl.webservices.tcpmonitor.ServiceTester$ 3.run(ServiceTester.java:262)
    at java.lang.Thread.run(Thread.java:662)

    Then I tried to create a new project and the web service in Java from WSDL, but on the second step of the wizard 'Java Web Service WSDL' when I select the WSDL file in the drive and click on 'Next' I get

    java.lang.IllegalStateException: SSLContextImpl is not initialized.

    java.lang.IllegalStateException: SSLContextImpl is not initialized.
    at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
    at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
    at oracle.jdevimpl.credential.LazySSLContextSpi.engineGetSocketFactory(LazySSLContextSpi.java:67)
    at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:398)
    to oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$ 1.initialValue(CachedWSDLReader.java:298)
    to oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$ 1.initialValue(CachedWSDLReader.java:294)
    at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
    at java.lang.ThreadLocal.get(ThreadLocal.java:131)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:308)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:484)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:455)
    at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.fetchWSDL(SpecifyWsdlPanel.java:1050)
    to oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$ 1.run(SpecifyWsdlPanel.java:364)
    at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
    at java.lang.Thread.run(Thread.java:662)

    I did the new facility of this new version of JDeveloper in New Middleware House with all the default options and it's the first thing I tried.

    Any tips?

    Thank you
    Bruno

    Bruno,

    You can try the following to me?

    1. Tools-> preferences
    2. the powers-> HTTPS Credential

    Ideally take me a screenshot here.

    3. press the button "default".

    Then restart your tool. It is for me as we take hold of your https from a previous version settings.

    Sorry for the oversight,

    Gerard

    (The developer of the HTTP parser)

  • WebService is driving me crazy!

    Hey all,.

    Writing a quick legend to a web service from a provider called echosign. The classic "webservice operations with these parameters is not found."

    This is the URL of the Web service

    http://www.echosign.com/services/EchoSignDocumentService9?WSDL

    This is the documentation on the method, I am trying to invoke

    https://secure.echosign.com/static/apiv9/apiMethods9.jsp#sendDocument

    Here you can see exactly what I mean

    http://portal.fpitesters.com/EchoSign.cfm?cmd=sendDocument

    This is my code so far

    <!--- User specific variables, change in your isntance ---->
    <cfset apiKey = "XA7R8YXV4N4K79">
    <cfset strFilePath = "C:\website\portal\test.pdf" />
    <cfset agreementName = "Test File">
    <cfset fileName = "Test File">

    <cfsavecontent variable="message">
    Put any message you like here. Probably some HTML content
    </cfsavecontent>

    <!--- Url for the web service, shouldn't need to touch this --->
    <cfset wsdl ="http://www.echosign.com/services/EchoSignDocumentService9?wsdl">

    <!---- Remove me later, just a placeholder for now ---->
    <cfset userLogin.UserEmail = "[email protected]">


    <!--- Don't touch below here, unless you really want to. Then I guess have at, but ya know you might break it or something ---->
    <cfset arguments = structnew()>
    <cfset arguments.apiKey = apikey>

    <!--- first lets run a test to make sure we can actually communicate --->
    <cftry>
         Result of test API call:
         <cfinvoke webservice="#wsdl#" method="testPing" attributecollection="#arguments#" returnvariable="myTestResult"/>
              <cfoutput><strong>#myTestResult.getMessage()#</strong></cfoutput>
         <cfcatch type="any">
              <strong>Calling webservice failed.</strong><br>
              <cfdump var="#cfcatch#">
         </cfcatch>
    </cftry>

    <br><br>

    <!--- K lets try and actually send a document now ---->

    <!--- Make sure the file exists. otherwise abort --->
    <cfif fileexists(strFilePath)>
         <cffile action="readbinary" file="#strFilePath#" variable="objBinaryData" />
         <cfelse>
              File could not be found. Please check file path.
         <cfabort>
    </cfif>

    <!--- create the documentCreationInfo key that holds all the needed data for the webservice call ---->
    <cfset arguments.DocumentCreationInfo = structnew()>

    <!--- They seem to want a string array for emails. I think that means an actual array, so create an array and jam the
          email from above in the first element ---->
    <cfset arguments.DocumentCreationInfo.tos = arraynew(1)>
    <cfset arguments.DocumentCreationInfo.tos[1] = userLogin.UserEmail>

    <!--- Just some more required keys --->
    <cfset arguments.DocumentCreationInfo.name = agreementName>
    <cfset arguments.DocumentCreationInfo.message = message>

    <!--- this is where it gets a little crazy. There is a key called fileInfos. That seems to be an array. Within each array
          element they seem to want another structure with 2 keys, the filename and the file. Now I'm not sure if they actually
           want an array of structures here or what. It would make sense, seeing as you are able to send more than one file at a time
           and if it wasn't broken into array elements you wouldn't be able to do that --->
    <cfset arguments.DocumentCreationInfo.fileInfos = arraynew(1)>
    <cfset arguments.DocumentCreationInfo.fileInfos[1] = structnew()>

    <cfset arguments.DocumentCreationInfo.fileInfos[1].fileName = fileName>

    <!---The file data needs to be base64 encoded, so do that --->
    <cfset arguments.DocumentCreationInfo.fileInfos[1].file = ToBase64(objBinaryData)>

    <!--- Some other needed params here --->
    <cfset arguments.DocumentCreationInfo.signatureType = "ESIGN">
    <cfset arguments.DocumentCreationInfo.signatureFlow = "SENDER_SIGNATURE_NOT_REQUIRED">

    <!--- for debugging so we can see what we are sending ---->
    <cfdump var="#arguments#">

    <!--- Try to call the web service with the provided arguments --->
    <cftry>
         <cfinvoke webservice="#wsdl#" method="#url.cmd#" attributecollection="#arguments#" returnvariable="myresult"/>

         <!--- if it works, dump out the return object, so we can figure out what they are giving us and extract what is needed ---->
         <cfdump var="#myresult#">
         
         <!--- Otherwise the thing bombed, so just print that out for debugging purposes --->
         <cfcatch type="any">
              Calling webservice failed.<br>
              <cfdump var="#cfcatch#">
         </cfcatch>
    </cftry>     

    Here is the sample provided PHP code I am trying to imitate

    function cmd_send() {
        global $Url, $ApiKey, $S;

        list($filename, $recipient) = reset(func_get_args());

        $r = $S->sendDocument(array(
            'apiKey' => $ApiKey,
            'documentCreationInfo' => array(
                    'fileInfos' => array(
                        'FileInfo' => array(
                            'file'     => file_get_contents($filename),
                            'fileName' => $filename,
                        ),
                    ),
                    'message' => "This is neat.",
                    'name'    => "Test from SOAP-Lite: $filename",
                    'signatureFlow' => "SENDER_SIGNATURE_NOT_REQUIRED",
                    'signatureType' => "ESIGN",
                    'tos' => array( $recipient ),
                ),
            )
        );

        print "Document key is: {$r->documentKeys->DocumentKey->documentKey}\n";
    }

    Thanks for any help. I guess I'm just doing something stupid, but if I know what it is hell. Thank you!

    Mega Bonus - you are lucky enough to have a web service that comes with outstanding documentation.  Example XML that you can use right in the documentation:

    https://secure.echosign.com/static/apiv9/apiMethods9.jsp

    XML example (create by using block ):

    -Navigate to the method that interests you and click on the 'Request' link on the upper right.  Boom - your model XML SOAP is ready to start filling with data.

    Additional to use with CF headers:

    https://secure.echosign.com/static/API/apiSoapHeaderInfo.jsp

    Looks like they actually use a SOAPAction to "", so do not include anything in this entry.  (You must include an extra set of quotes well - try both directions may see what works).

  • WebService invocation - variable @namespace errro

    Hello

    I get the below error. (Variable @namespace is not defined)

    I don't know of webservices, I just try to access a WSDL file of
    Flex. Can you please let me know why Flex shows this error? On which
    is he waiting for a namespace. The WSDL file, I use already
    has a targetNamespace.

    Even if I don't call all the Web service methods, I get this error.

    Even if I do after it gives me error. That is to say, it's probably
    Tyring to invoke the Web service and check it out.

    "< mx:WebService id ="webService"wsdl =" http://someurl?wsdl "> "
    < name mx:operation = "getData".
    result = "resultHandler (Event); »
    Fault = "MX. Controls.Alert.Show (Event.Fault.FaultString); "/ >
    < / mx:WebService >
    Thanks in advance.

    Kind regards
    Neha


    ReferenceError: Error #1065: Variable @namespace is not defined.
    to
    MX. RPC.xml::SchemaLoader/schemaImports() [E:\dev\3.0.x\frameworks\projects\rpc\sr\
    \
    c\mx\rpc\xml\SchemaLoader.as:102]
    to
    MX. RPC.wsdl::WSDLLoader/schemaImports() [E:\dev\3.0.x\frameworks\projects\rpc\src\
    \
    \mx\rpc\wsdl\WSDLLoader.as:253]
    to
    MX. RPC.wsdl::WSDLLoader/resultHandler() [E:\dev\3.0.x\frameworks\projects\rpc\src\
    \
    \mx\rpc\wsdl\WSDLLoader.as:162]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    to
    MX. RPC::AbstractInvoker / http://www.adobe.com/2006/flex/mx/internal:dispatchRpcE\
    \
    vent() [E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:168]
    to
    MX. RPC::AbstractInvoker / http://www.adobe.com/2006/flex/mx/internal:resultHandle\
    \
    r() [E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:191]
    to
    MX. CPP [E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Respo\::Responder/Result()
    \
    nder. As:41]
    to
    MX. CPP [E:\dev\3.0.x\frameworks\projects\rpc\src\mx\r\::AsyncRequest/acknowledge()
    \
    pc\AsyncRequest.as:74]
    to
    DirectHTTPMessageResponder / completeHandler ([E:\dev\3.0.x\frameworks\projects\rp\)
    \
    c\src\mx\messaging\channels\DirectHTTPChannel.as:381]

    I had to add following and he gets rid of the error:

    = request.getOperation ("getData") of operation: var operation as operation; Operation.mx_internal::wsdlOperation.style = 'document '.

  • Problem creating Web Service in 11g of PeopleSoft WSDL

    I created a Web Service in PeopleSoft (8.48 tool version 9.0) of a component based on POSITION_DATA Interface. Trying to create a web service in JDeveloper 11 g to connect to it. Create a new Web Service, Web Service Proxy type. Select the Style of logic Web JAX - RPC. Paste the WSDL (http://xxx.com:11001/PSIGW/PeopleSoftListeningConnector/CI_Z_POSITION_DATA.1.wsdl) address. Any type or style, I get the same error.

    Document: http://xxx.com:11001/PSIGW/PeopleSoftListeningConnector/CI_Z_POSITION_DATA.1.wsdl is not a wsdl file or does not have an element root "definitions" in the namespace "http://schemas.xmlsoap.org/wsdl/" or the "http://www.w3.org/2004/08/wsdl" namespace :
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseDefinition(WSDLReaderImpl.java:723)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:661)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:610)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:333)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:570)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:548)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:372)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:294)
    at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.fetchWSDL(SpecifyWsdlPanel.java:1002)
    at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlAndMappingFilePanel.fetchWSDL(SpecifyWsdlAndMappingFilePanel.java:232)
    to oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$ 1.run(SpecifyWsdlPanel.java:346)
    at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:643)
    at java.lang.Thread.run(Thread.java:619)

    The WSDL looks like this. When I access them directly in Internet Explorer it says that it is active. Anyone have any ideas?
    <? XML version = "1.0"? >
    < wsdl:definitions name = "CI_Z_POSITION_DATA.1" targetNamespace = "http://xmlns.oracle.com/Enterprise/Tools/services/CI_Z_POSITION_DATA.1" xmlns:M264705. V1 = xmlns:M650531 'http://xmlns.oracle.com/Enterprise/Tools/schemas/M264705.V1 '. V1 = xmlns:M970925 'http://xmlns.oracle.com/Enterprise/Tools/schemas/M650531.V1 '. V1 = "http://xmlns.oracle.com/Enterprise/Tools/schemas/M970925.V1" xmlns:plnk = "http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns = "http://xmlns.oracle.com/Enterprise/Tools/services/CI_Z_POSITION_DATA.1" xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/" xmlns:wsp = "http://schemas.xmlsoap.org/ws/2002/12/policy" >
    < wsp:UsagePolicy wsdl: required = "true" / >
    < plnk:partnerLinkType name = "CI_Z_POSITION_DATA_PartnerLinkType" >
    < plnk:role name = "CI_Z_POSITION_DATA_Provider" >
    < name plnk:portType = "tns:CI_Z_POSITION_DATA_PortType" / >
    < / plnk:role >
    < / plnk:partnerLinkType >
    WSDL: < types >
    < xsd: Schema elementFormDefault = "qualified" container = "http://www.w3.org/2001/XMLSchema" >
    < xsd: import namespace = schemaLocation="M970925.V1.xsd"/ "http://xmlns.oracle.com/Enterprise/Tools/schemas/M970925.V1" >
    < xsd: import namespace = schemaLocation="M650531.V1.xsd"/ "http://xmlns.oracle.com/Enterprise/Tools/schemas/M650531.V1" >
    < xsd: import namespace = schemaLocation="M264705.V1.xsd"/ "http://xmlns.oracle.com/Enterprise/Tools/schemas/M264705.V1" >
    < / xsd: Schema >
    < / wsdl: types >
    < name = "M970925. "V1 wsdl: message" >
    < wsdl:documentation > M970925 < / wsdl:documentation >
    < element wsdl: part = 'M970925. V1:Get__CompIntfc__Z_POSITION_DATA"name ="parameter"/ >
    < / wsdl: message >
    < name = "M650531. "V1 wsdl: message" >
    < wsdl:documentation > M650531 < / wsdl:documentation >
    < element wsdl: part = 'M650531. V1:Get__CompIntfc__Z_POSITION_DATAResponse"name ="parameter"/ >
    < / wsdl: message >
    < name = "M264705. "V1 wsdl: message" >
    < wsdl:documentation > M264705 < / wsdl:documentation >
    < element wsdl: part = 'M264705. V1:IBResponse"name ="parameter"/ >
    < / wsdl: message >
    < name of wsdl: portType = "CI_Z_POSITION_DATA_PortType" >
    < name of wsdl: Operation = "CI_Z_POSITION_DATA_G" >
    < wsdl:documentation > CI_Z_POSITION_DATA_G < / wsdl:documentation >
    < message wsdl: Input = 'tns:M970925. V1 "name ="M970925." V1 "/ >"
    < message wsdl: output = 'tns:M650531. V1 "name ="M650531." V1 "/ >"
    < message wsdl: Fault = "tns:M264705. V1 "name ="M264705." V1 "/ >"
    < / wsdl: Operation >
    < / wsdl: portType >
    < name of binding wsdl: Binding = "CI_Z_POSITION_DATA_Binding" type = "tns:CI_Z_POSITION_DATA_PortType" >
    < style: binding soap = transport "document" = "http://schemas.xmlsoap.org/soap/http" / >
    < name of wsdl: Operation = "CI_Z_POSITION_DATA_G" >
    < soap: operation soapAction = "CI_Z_POSITION_DATA_G.V1" style = "document" / > "
    < wsp WSU: ID = "UsernameTokenSecurityPolicyPasswordOptional" xmlns:wsu = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" >
    < ExactlyOne >
    < wsp >
    < wsp:Usage = wsse:SecurityToken "" wsp: required "xmlns:wsse ="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">"
    WSSE: UsernameToken < wsse:TokenType > < / wsse:TokenType >
    < claims >
    < SubjectName MatchType = "wsse: Exact" / >
    < UsePassword wsp:Usage = "wsp: Optional" / >
    < / claims >
    < / wsse:SecurityToken >
    < / wsp >
    < / ExactlyOne >
    < / wsp >
    < name = "M970925. "V1 wsdl: Input" >
    <: body soap encodingStyle = use "http://schemas.xmlsoap.org/soap/encoding/" = "literal" / >
    < / wsdl: Input >
    < name = "M650531. "V1 wsdl: output" >
    <: body soap encodingStyle = use "http://schemas.xmlsoap.org/soap/encoding/" = "literal" / >
    < / wsdl: output >
    < wsdl: fault name = "M264705. V1 ">
    <: error soap encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/" name = 'M264705. V1 ' use = "literal" / > ".
    < / wsdl: Fault >
    < / wsdl: Operation >
    < / wsdl: Binding >
    < wsdl:service name = "CI_Z_POSITION_DATA" >
    < wsdl:documentation > CI_Z_POSITION_DATA < / wsdl:documentation >
    < binding wsdl: port = "tns:CI_Z_POSITION_DATA_Binding" name = "CI_Z_POSITION_DATA_Port" >
    < soap: address location = "http://ORACLE_ENDPOINT" / >
    < / wsdl: port >
    < / wsdl:service >
    < / wsdl:definitions >

    Hello

    You are looking at your URL of the WSDL document, the IB PeopleSoft should contain 'Service' in its name, it seems you are using rather your IB Gateway URL.

    That's what you posted:

    -http://xxx.com:11001/PSIGW/PeopleSoftListeningConnector/CI_Z_POSITION_DATA.1.wsdl

    Try the following, and this should solve your problem.

    -http://xxx.com:11001/PSIGW/PeopleSoftServiceListeningConnector/CI_Z_POSITION_DATA.1.wsdl

    Kind regards
    Dan

Maybe you are looking for

  • Satellite A200 - what is the added value package?

    What is the PVAT (Toshiba value added package)?The Toshiba Service Center just updated the PVAT a Toshiba Satellite A200, how that affects the computer?

  • TouchSmart 520: Camera not recognized

    I had my Touchsmart for 2 or 3 years now and have always used with Google Photos (Picasa) for edit and download. I first used a Canon EOS 400 d and a couple of years, upgraded to a 7 d. All were working well. Last week, I returned from vacation with

  • Spectrum x 2 and Micro SDXC

    Hello I recently bought a spectrum x 2 (product number: F7T43EA #ABU) and the manual says it has a Micro Sd slot but not will is compatible with Micro SD, Micro SDHD and or Micro SDXC.  I don't want to spend the money on a card that is not taken in c

  • I'm trying to find out if my Windows XP is a 32 or 64-bit.

    Instructions say to click on 'Enter' then click on 'My computer' when I click Enter, nothing in the list that appears who says:'My computer '.  Any suggestion would be appreciated.

  • emails get receipts after sendign via outlook express

    Why I can not create a message and send it to Outlook Express 6.0? I can reply to received messages and they are received by the original sender, but I can not create a message in Outlook Express 6.0 and send it and have the receiver to get it.  I ca