Invoking Web Services Without Using the WSDL File - RPC

I would apprecite if someone can provide sample code
for RPC client for WeatherEJB sample code without using wsdl file.
Thanks ,
ag

Hi,
Attached is a small program that calls a service CurrencyExchangeRate
registered at www.xmethods.com.
The program uses pure java to call the service.
Hope that helps
Thanks
Amit Chauhan
ag <[email protected]> wrote in message
news:3c59734d$[email protected]..
>
I would apprecite if someone can provide sample code
for RPC client for WeatherEJB sample code without using wsdl file.
Thanks ,
ag[webservice.java]

Similar Messages

  • Web services client without using the WSDL file

    I need to invoke a web service without WSDL, as the method and primitive type parameters will be defined by the user at runtime..
    I am not interested in the return.. and can live without complextype parameters..
    I found this example.. that seems to do what I need.. is there an open source equivalent to these weblogic classes? or maybe in java se?
    http://edocs.bea.com/wls/docs61/webServices/advanced.html

    http://www.ibm.com/developerworks/library/ws-tip-jaxwsrpc4/index.html
    http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info/ae/ae/twbs_jaxwsdynclient.html

  • Web Services without using the API

    Hi. I'm new to Web Services. I've been able to call a web service and get my result back without using the Web Services API -- easy enough. My question is this.... the concept of web services has been around for a long time... longer than the web services API. Can I not write a simple servlet it Java that would function as a Web Service without having to use the Web Services API.
    For example,
    Calling XML:
    <action><delete>jdoe</delete></action>
    Servlet recieves this as a stream, deletes the associated ID and returns:
    <action><result>Success</result></action>
    or
    <action><result>Failed</result></action>
    This seems to me like it would be pretty generic stuff (not requiring the API) and pretty basic (not very large).
    Can anyone head me in the right direction with this or provide an example?
    Thank you.
    dr

    Can... Servlet is very powerful to write the web services...

  • Steps to expose a web service without using SR

    Hello,
    How can I expose a web service without using the service registry?  Is there some documentation for this process?
    Thanks,
    Matt

    Thanks for the response.  Although, I do not have an * in the Sender Agreement.
    Here is the situation:
    When I attempt to reach the URL for my Web Service but using NWA instead of the Service Call I get into NWA.
    https://xxxxx.steelcasedev.com/nwa
    Result: Success
    When I use SOAPSonar to run this URL I get the CPA error:
    https://xxxxx.steelcasedev.com//XISOAPAdapter/MessageServlet?senderParty=&senderService=WSProcurement_Async_Sender&receiverParty=&receiverService=Steelcase_Dev&interface=WSProcure_Out&interfaceNamespace=urn:steelcasedev.com:wsprocure:xsuppliers
    Result:  Error
    <context>XIAdapter</context>
              <code>ADAPTER.JAVA_EXCEPTION</code>
              <text><![CDATA[
    com.sap.aii.af.service.cpa.CPAException: com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve inbound binding for the given P/S/A values: FP=;TP=;FS=WSProcurement_Async_Sender;TS=Steelcase_SAPR3_D01;AN=WSProcurement_Out;ANS=urn:steelcase.com:wsprocurement:xml2suppliers;
         at com.sap.aii.af.service.cpa.impl.lookup.CommonLookup.checkForError(CommonLookup.java:53)
         at com.sap.aii.af.service.cpa.InboundRuntimeLookup.getBinding(InboundRuntimeLookup.java:411)
         at com.sap.aii.af.service.cpa.impl.lookup.AbstractLookupManager.getBinding(AbstractLookupManager.java:714)
         at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:430)
    The sender adapter is active in ID but in RTWB it is "Started but Inactive".  I have found that this status could be related to the fact that I have not had a successful transaction for that channel yet.
    My NW Admin says he found this error: 
    Marked transaction for rollback for message 0015605e-09d7-1ddf-94f7-d5031c019713(INBOUND). Reason: Channel has been configured as inactive and cannot accept messages
    I am quite confused. 
    Thanks,
    Matt

  • How MS SOAP 3.0 client invokes WL 7.0 Webservice WITHOUT using a WSDL file?

    Hi all,
    I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
    webservice. Could anyone please post a sample VBScript codes invoking a soap service
    on WL 7.0 WITHOUT using a WSDL file, for example at:
    http://localhost:7001/HelloWorld/Hello
    with the service method:
    public org.w3c.dom.Element say(String something);
    Thanks,
    Dovan

    Hi,
    As you might guess, we are not big VB users here :-) but we may have some C# code that
    could be of some value.
    What problem are you trying to solve by not using WSDL?
    Just curious,
    Bruce
    Dovan Nguyen wrote:
    Hi all,
    I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
    webservice. Could anyone please post a sample VBScript codes invoking a soap service
    on WL 7.0 WITHOUT using a WSDL file, for example at:
    http://localhost:7001/HelloWorld/Hello
    with the service method:
    public org.w3c.dom.Element say(String something);
    Thanks,
    Dovan

  • How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file?

    How can we send only one message to a WCF service at a time? How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file? Can we do it by Host throttling?

    Hi Pawan,
    You need to use WCF-Custom adapter and add the ServiceThrottlingBehavior service behavior to a WCF-Custom Locations.
    ServiceThrottlingBehavior.MaxConcurrentCalls - Gets or sets a value that specifies the maximum number of messages actively processing across a ServiceHost. The MaxConcurrentCalls property specifies the maximum number of messages actively
    processing across a ServiceHost object. Each channel can have one pending message that does not count against the value of MaxConcurrentCalls until WCF begins to process it.
    Follow MSDN-
    http://msdn.microsoft.com/en-us/library/ee377035%28BTS.10%29.aspx
    http://msdn.microsoft.com/en-us/library/system.servicemodel.description.servicethrottlingbehavior.maxconcurrentcalls.aspx
    I hope this helps.
    Rachit
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Errors creating a Web Service Proxy using Microsoft WSDL.exe tool

    I have deployed a BPEL process using JDeveloper. This process can be invoked from the BPEL console and completes as expected. I am trying to create a Web Service Proxy using the Microsoft WSDL.exe tool so that the process can be invoked from a Microsoft Word document. This process is based on the AutoLoan example in the Developer's Guide for Microsoft Office Interoperability B25781-01.
    WSDL.exe returns the following error message
    Error: There was an error processing 'http://erp.template.co.uk:8889/orabpel/default/HonorariumSmartDoc/1.0/HonorariumSmartDoc?wsdl'.
    - The document at the url http://erp.template.co.uk:8889/orabpel/default/HonorariumSmartDoc/1.0/HonorariumSmartDoc?wsdl was not recognized as a known document type. The error message from each known type may help you fix the problem:
    - Report from 'WSDL Document' is 'There is an error in XML document (19, 7).'.
    - A schema with the namespace '' has already been added.
    - Report from 'DISCO Document' is 'Discovery document at the URL http://erp.template.co.uk:8889/orabpel/default/HonorariumSmartDoc/1.0/HonorariumSmartDoc?wsdl could not be found.'.
    - The document format is not recognized.
    - Report from 'XML Schema' is 'Expected Schema root. Make sure that the root element is <schema> and the namespace is 'http://www.w3.org/2001/XMLSchema' for an XSD schema or 'urn:schemas-microsoft-com:xml-data' for an XDR schema. An error occurred at , (2, 2).'.
    How do I resolve this error?

    The WSDL file is below.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions name="HonorariumSmartDoc" targetNamespace="http://xmlns.oracle.com/HonorariumSmartDoc" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/HonorariumSmartDoc" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:client="http://xmlns.oracle.com/HonorariumSmartDoc">
    - <types>
    - <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://xmlns.oracle.com/HonorariumSmartDoc" schemaLocation="HonorariumSmartDoc.xsd" />
    </schema>
    - <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" schemaLocation="http://erp.template.co.uk:8889/orabpel/xmllib/ws-addressing.xsd" />
    </schema>
    </types>
    - <message name="HonorariumSmartDocResponseMessage">
    <part name="payload" element="tns:HonorariumSmartDocProcessResponse" />
    </message>
    - <message name="HonorariumSmartDocRequestMessage">
    <part name="payload" element="tns:HonorariumSmartDocProcessRequest" />
    </message>
    - <message name="WSARelatesToHeader">
    <part name="RelatesTo" element="wsa:RelatesTo" />
    </message>
    - <message name="WSAReplyToHeader">
    <part name="ReplyTo" element="wsa:ReplyTo" />
    </message>
    - <message name="WSAMessageIDHeader">
    <part name="MessageID" element="wsa:MessageID" />
    </message>
    - <portType name="HonorariumSmartDocCallback">
    - <operation name="onResult">
    <input message="tns:HonorariumSmartDocResponseMessage" />
    </operation>
    </portType>
    - <portType name="HonorariumSmartDoc">
    - <operation name="initiate">
    <input message="tns:HonorariumSmartDocRequestMessage" />
    </operation>
    </portType>
    - <binding name="HonorariumSmartDocBinding" type="tns:HonorariumSmartDoc">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="initiate">
    <soap:operation style="document" soapAction="initiate" />
    - <input>
    <soap:header message="tns:WSAReplyToHeader" part="ReplyTo" use="literal" encodingStyle="" />
    <soap:header message="tns:WSAMessageIDHeader" part="MessageID" use="literal" encodingStyle="" />
    <soap:body use="literal" />
    </input>
    </operation>
    </binding>
    - <binding name="HonorariumSmartDocCallbackBinding" type="tns:HonorariumSmartDocCallback">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="onResult">
    <soap:operation style="document" soapAction="onResult" />
    - <input>
    <soap:header message="tns:WSARelatesToHeader" part="RelatesTo" use="literal" encodingStyle="" />
    <soap:body use="literal" />
    </input>
    </operation>
    </binding>
    - <service name="HonorariumSmartDocCallbackService">
    - <port name="HonorariumSmartDocCallbackPort" binding="tns:HonorariumSmartDocCallbackBinding">
    <soap:address location="http://set.by.caller" />
    </port>
    </service>
    - <service name="HonorariumSmartDoc">
    - <port name="HonorariumSmartDocPort" binding="tns:HonorariumSmartDocBinding">
    <soap:address location="http://erp.template.co.uk:8889/orabpel/default/HonorariumSmartDoc/1.0" />
    </port>
    </service>
    - <plnk:partnerLinkType name="HonorariumSmartDoc">
    - <plnk:role name="HonorariumSmartDocProvider">
    <plnk:portType name="tns:HonorariumSmartDoc" />
    </plnk:role>
    - <plnk:role name="HonorariumSmartDocRequester">
    <plnk:portType name="tns:HonorariumSmartDocCallback" />
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

  • Where is the Web Service fault in the WSDL definition?

    Hi all,
    I have created a Web Service out of function module, using the SAP standard wizard. The creation went fine, I can receive the WSDL file via the SOAMANAGER application. But: In this WSDL file it seems that the Web Service faults (i.e. the exceptions of the underlying function module) are not part of the "wsdl:operation" definition (even if they and their format are defined in that file).
    Is that a bug or do I miss something here?
    How are the faults integrated in the response definition of the service?
    Thanks in advance for your help!
    Kind regards, Matthias

    solved, see SAP note 1270688

  • Can not set up Web Service datastore using HTTPS WSDL DS 4.1

    I have been trying to configure a Web services data store to connect to an HTTPS Wsdl file
    Here is some background.
    DS Version: 14.1.1.210
    Job Server Windows 2008
    if i configure the datastore and leave the field for Keystore path empty, i get the following error:
    Error loading [https://stgbbaaviation.taleo.net/enterprise/soap?ServiceName=CorporateRecruitmentSourceService&wsdl]:
    org.apache.xmlbeans.XmlException: java.io.IOException: Server returned HTTP response code: 401 for URL: https://stgbbaaviation.taleo.net/enterprise/soap?ServiceName=CorporateRecruitmentSourceService&wsdl
    If i put the path C:\Program Files (x86)\SAP BusinessObjects\Data Services\ssl\mds\DSJavaKeyStore.keystore for the keystone path,
    I get the following different error:
    An error ocurred while importing metadata: WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'https://stgbbaaviation.taleo.net/enterprise/soap?ServiceName=CandidateService&wsdl':javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building faild: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target (BODI-1111469) (BODI-1112446)
    I have recreated the DSJavaKeyStore.keystore and added in additional certificates but nothing seems to work.
    As a workaround i saved the wsdl file down to the local machine (I'm currently running designer on the job server machine)
    i can then save the web service datastore and import the wsdl function.  but at runtime I get the following error:
    There is no response for the web service <getMessageByIdentifier>. Ensure that the network, web server, and service are running
    properly. Also ensure that the service client call time out is set properly.
    I have edited the
    C:\Program Files (x86)\SAP BusinessObjects\Data Services\ext\webservice-c\axis2.xml file as follows for the sections that are listed in the documentation:
        <transportReceiver name="https" class="axis2_http_receiver">
            <parameter name="port" locked="false">6060</parameter>
            <parameter name="exposeHeaders" locked="true">false</parameter>
        </transportReceiver>
    <!-- Uncomment the following with appropriate parameters to enable the SSL transport sender.
             Also make sure that the appropriate transport receiver is enabled above.-->
        <transportSender name="https" class="axis2_http_sender">
            <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
            <parameter name="xml-declaration" insert="false"/>
        </transportSender>
        <parameter name="SERVER_CERT">C:\Program Files (x86)\SAP BusinessObjects\Data Services\ssl\server\DS_server_cert.crt</parameter>
        <parameter name="KEY_FILE">C:\Program Files (x86)\SAP BusinessObjects\Data Services\ssl\server\DS_server_privatekey.pem</parameter>
        <parameter name="SSL_PASSPHRASE">C:\Program Files (x86)\SAP BusinessObjects\Data Services\ssl\server\DS_server_privatekey_password.txt</parameter>
    I'm not sure what i'm doing wrong.  Not much detail in the documentation on what to enter for the Keystore path in the Datastore config.
    also it is unclear if i don't have the correct certifications added to the keystore.
    Please help

    Hi Prashant,
    Please refer the below KBA related to BODI-1111469 issue in SAP Data Services 4.1 Support Pack 1 Patch 1 (Version 14.1.1.284).
    ADAPT01664699
    An importing operation from a WSDL that has a recursive import of a schema would fail with the error:  "An error occurred while importing metadata: Unknown JNI error... (BODI-1111469)”. This issue has been fixed in this release.
    1804623 - Release Notes for SAP BusinessObjects Data Services 4.1 Support Pack 1 Patch 1 (Version 14.1.1.284)
    https://service.sap.com/sap/support/notes/1804623
    Thanks,
    Daya

  • Generating Web Services bases on the WSDL interface

    Hello everybody.
    my question is.
    How can i generated all the java classes of a web services basen on a wsdl definition.
    how can i generate a simple java classe or how can i generate a ejb session, thet serve as a end point for my services
    any sugestion could be so helpfull

    The tool used to generate java class from WSDL is vender dependent, because each JAX-RPC engine is implemented differently (even they have to implement all JAX-RPC API, but low level stub call is engine dependent).
    So to generate you class from WSDL, you have to have tool first. Since all J2EE 1.4 app servers are required to have implementation of JAX-RPC API and its run time engine (but many J2EE 1.3 app servers also included JAX-RPC API and engine) , what you want to do could be to find any J2EE 1.4 app server, such as WAS or WSAD, or Sun's Application Server PE 8.1, read their examples carefull and you will find the way how to generate classes from WSDL.

  • Problem creating a web service PROXY from a wsdl file/URL

    Hi,
    I am experiencing problems when I want to import a WSDL file for creating a proxy object.
    When I import the WSDL file from URL I get an error like this: <b>404   Not Found
    The requested resource does not exist.</b>
    Then, I  try to create it from a file, but I get other error:
    <b>Document not found (path o:\BCS.WSDL, error code 7</b>
    The error code 7 indicates <b>unknown error</b>
    Any help?.
    thanks in advance.
    Eduardo.

    Hi,
    I've done the same from other ECC6.0 System and everything was working perfetly, why all this can happen?
    I've ckecked the activation of the proxy objects, traces, etc... and it's the same in both systems, what more should i check?
    Thanks in adavance.

  • How to Execute a Web Template Without Using the Cache?

    Hi All,
    I am trying to execute a webt emplate to determine performance and optimisation. The trick is that the web template starts using the cache. Is there any way to turn off the cache for the web template? Maybe using a URL parameter or something?
    Thanks in advance for any assistance provided.

    Hi,
    You can do it thru RSRT, choosing HTML, the query and the template, then in the menu you have to check the box dont use cache, aggragates and BIA.
    Regards, Federico

  • How to return List or Array from Web Service without using ADF?

    All,
    I would like to know how to do this before I use ADF. Sounds like a simple thing to do - common even - but I haven't found a solution in existing postings. My attempts have failed though I'm not sure exactly why.
    I have created a declarative WS that takes a single parameter and tries to return a List<Employees> resultset. My Sample Java Client works just fine. When I change the result type from List to String[], for example, it also works fine.
    What am I doing wrong??
    Thanks
    package wizard;
    (imports removed for readability)
    @WebService(name = "MyWebService1", serviceName = "MyWebService1", portName = "MyWebService1SoapHttpPort")
    @Deployment(restSupport = true)
    public class HelloWorld {
    List<Employees> employees = null;
    public HelloWorld() {
    public List<Employees> sayHello (String s) {
    try {
    final Context context = getInitialContext();
    ATOABPFacade aTOABPFacade = (ATOABPFacade)context.lookup("ATOABPFacade");
    employees = aTOABPFacade.queryEmployeesFindByName(s);
    return employees;
    } catch (Exception ex) {
    ex.printStackTrace();
    return employees;
    private static Context getInitialContext() throws NamingException {
    return new InitialContext();
    Trace:
    Ready message received from Oc4jNotifier.
    Embedded OC4J Server startup time: 24063 ms.
    Target URL -- http://localhost:8988/JPA-Wizard-context-root/mywebservice1soaphttpport
    Feb 18, 2008 7:42:49 PM com.evermind.server.ServerBase log
    WARNING: JPA-Wizard-webapp: Error preloading servlet
    javax.servlet.ServletException: java.lang.NullPointerException
         at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:186)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:5275)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1357)
         at com.evermind.server.http.HttpApplication.init(HttpApplication.java:873)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:699)

    Gi,
    not sure what you are doing there, but you can build the J2EE WebService from your working POJO, and create a Web Service proxy class from the WSDL description (of the deployed or local WSDL file). Then, using the proxy class, you can access the output of the WebService.
    Frank

  • Web service deployment using generated wsdl

    Hi,
    As u know app server is generating the wsdl and mapping files in deployment time if you dont include these files in the archive.
    What i m trying to do is to use the pregenerated wsdl and mapping file in the archieve, i don't want app server to generate wsdl and mapping. I'm generating these files in build phase and placing them under META-INF folder of resulting jar file.
    And i expect oc4j to use these supplied files but it continues to generate and uses the generated.
    (I'm using wsa.jar to generate wsdl, mean i'm generating in oracle way, not other tool)
    (I dont want to use the auto generated wsdl cause i need to update them before deployment. Auto generated wsdl have data definition with object graphs which is not supported by document-literal message format. i will try to clean object graph dependencies in wsdl and deploy) Or shall i use Rpc-Encoded which supports object graphs??
    Thanks...

    it seems that it is hard to extract main question from the preview post. The question is that:
    how can i deploy web service for a stateless session bean annotated with @webService annotations with supplied wsdl and mapping file in the ejb jar file...
    (oc4j always generates a new wsdl,does;t use the one given in the jar)

  • Web service creation using the wizard

    Hi Friends,
    I am new to creation of web services. I am creating a web service for a FM which I have created using the wizard.
    In SE80, under Enterprise Solutions for my package, I am able to see the servicedefinitions . But when I open the serdefinition 's  " WSDL" tab, to note down the URL created,
    I am unable to see the XML code that is being generated.I have selected document style. Please help me out how can i get the xml code that is being generated. How can i view it? Or what is the step I have missed. Please reply if anyone knows  as it is an urgent requirement.
    Thanks,
    Uma.

    Hi,
    for future search:
    this happens if the related application is not running. On 700 you can check it in the deploy service of the Visual admin.
    Perhaps the deployment was succesful but due to various reasons the application could not be started (or died in the meantime). This case it won't show up in the list of /wsnavigator.
    Regards,
    Ervin

Maybe you are looking for