Creating a web service - editing xml

does anyone know how to alter the values returned by a web service before the xml is returned to the caller?
What I mean by this is, I have a web service that returns data. If the data field has not been populated it simply passes back the field with its initial state e.g. space for char and zero for numeric  etc.
Is it possible to alter these values so that the outbound return xml would contain null  pointers in these cases. e.g. xsi:nil
For web service consumption the controller table allows ABAP to handle xsi:nil as the xml comes into the ABAP environment. Is there a similar protocol or class for the outbound/Web service that exists in SAP?
I can't find and user exits or BADI's in this area, but then again this is really on the boundary of the ABAP environment.
Any help would be appreciated.
Thanks,
Alan

If you have never done this before the best place to start is the axis user guide:
http://ws.apache.org/axis/java/user-guide.html
Work through the examples there and then google for examples of using WSDL2Java (there are many out there). This will generate client side classes for you and make things a bit easier.
C

Similar Messages

  • Creating a web service to consume price of a particular stock from ???

    hey,
    i'm new, donno much about web services in terms of writing it, but i do have some knowledge about wat it actually does...
    im here becuz i wanna create a web service to consume the price of a particular stock and then store the closing price along with the dates into a database
    now, im abit lost here.. how do i know where to get the information from? is it possible for me to write a web service to communicate with Yahoo! Finance or any other sites which allows consumption of information?

    If you are talking about simple XML transformation of the SOAP payload between the client calling your service and the final destination of the message you are routing, the ESB approach may be a better fit.
    If you have more complex transformation in mind, with major processing and rework of the message in the intermediary, you may be better of with using the POJO approach. Write your service and embed a callout to the other service in your implementation. If the two services share the same Java Model, you may even be able to re-use the same Java Bean.
    To get SOAP Element instead of Java bean, you just need to use the noDataBinding option with either genProxy and topDownAssemble (or assemble). See the WS-Guide [1] for details. Chapter 18 will give you all the details about the different WSA command line parameters.
    Hope this helps,
    -Eric
    [1] http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28974/toc.htm

  • 'schema is missing for the component ' while creating a web service

    Hello,
    I am trying to create a web service in Application Explorer on my dev server as described in:
    http://download-east.oracle.com/docs/cd/B31017_01/integrate.1013/b28996/config.htm#BABBJHHF
    I use an adapter for JDE Edwards EnterpriseOne. After supplying the parameters (service, license, method name) I get: com.ibi.bse.AddWSWorker:java.lang.Exception: schema is missing for the component.
    I think the environment (JDE system, GenJava files) is configured correctly as I am able to communicate using J2CA.
    Debug mode produces ibse_log.txt with some errors (below) but this does not give me a clue to the solution. Could you point me in the right direction?
    20070507-16:54:04 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:adapter factory method: [GETCOMPONENT]
    20070507-16:54:04 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:iwae method: [GETCOMPONENT] with idx [4]
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.edaqm.XDClassLoader:com/jdedwards/application/interop/jdejava_cfin/D0100033.class found as url jar:file:///C:\oracle\product\10.1.2\as_1\adapters\application\lib\JDEJAVA_CFINInterop.jar!/com/jdedwards/application/interop/jdejava_cfin/D0100033.class
    20070507-16:54:05 ERROR com.iwaysoftware.ibse.iwse.SimpleConfig:Error, properties generation
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:output:<?xml version="1.0" encoding="UTF-8" ?>
    <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <GETCOMPONENTResponse xmlns="urn:schemas-iwaysoftware-com:dec2002:iwse:af">
    <sid>2FDCA46F4D0D87AEBB2EF26FDF3949B4</sid>
    </GETCOMPONENTResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    20070507-16:54:05 INFO com.iwaysoftware.ibse.iwse.IBSEServlet:Received connection from host [10.1.1.27] with ip [10.1.1.27] and user [null]
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:Enter: doPost()...
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:request pathInfo [XDSOAPAdapterFactory]
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:request query [null]
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:soap action is []
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:<?xml version="1.0" encoding="UTF-8" ?>
    <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
    <ibsinfo xmlns="urn:schemas-iwaysoftware-com:dec2002:iwse:af">
    <service>iwae</service>
    <method>GETSCHEMA</method>
    <license>admin</license>
    <disposition/>
    <Username>ibseadmin</Username>
    <Password>1234512340023212232</Password>
    </ibsinfo>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <GETSCHEMA xmlns="urn:schemas-iwaysoftware-com:dec2002:iwse:af">
    <sid>2FDCA46F4D0D87AEBB2EF26FDF3949B4</sid>
    <component location="services/JDEJAVA_CFIN/B0100033/GetEffectiveAddress" name="GetEffectiveAddress"/>
    </GETSCHEMA>
    </SOAP-ENV:Body>
    <SOAPAction agentName="XDSOAPAdapterFactory" cid="1D90AB1A134EFDA81C656CA404EEC38D"></SOAPAction>
    </SOAP-ENV:Envelope>
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:adapter factory method: [GETSCHEMA]
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:iwae method: [GETSCHEMA] with idx [17]
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.edaqm.XDClassLoader:com/jdedwards/application/interop/jdejava_cfin/D0100033.class found as url jar:file:///C:\oracle\product\10.1.2\as_1\adapters\application\lib\JDEJAVA_CFINInterop.jar!/com/jdedwards/application/interop/jdejava_cfin/D0100033.class
    20070507-16:54:05 ERROR com.iwaysoftware.ibse.iwse.SimpleConfig:Error, schema generation
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.edaqm.XDClassLoader:com/jdedwards/application/interop/jdejava_cfin/D0100033.class found as url jar:file:///C:\oracle\product\10.1.2\as_1\adapters\application\lib\JDEJAVA_CFINInterop.jar!/com/jdedwards/application/interop/jdejava_cfin/D0100033.class
    20070507-16:54:05 ERROR com.iwaysoftware.ibse.iwse.SimpleConfig:Error, schema generation
    20070507-16:54:05 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:output:<?xml version="1.0" encoding="UTF-8" ?>
    <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <GETSCHEMAResponse xmlns="urn:schemas-iwaysoftware-com:dec2002:iwse:af"/>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    20070507-16:54:19 INFO com.iwaysoftware.ibse.iwse.IBSEServlet:Received connection from host [10.1.1.27] with ip [10.1.1.27] and user [null]
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:Enter: doPost()...
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:request pathInfo [XDSOAPAdapterFactory]
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:request query [null]
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.IBSEServlet:soap action is []
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:<?xml version="1.0" encoding="UTF-8" ?>
    <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
    <ibsinfo xmlns="urn:schemas-iwaysoftware-com:dec2002:iwse:af">
    <service>iwae</service>
    <method>ADDWS</method>
    <license>admin</license>
    <disposition/>
    <Username>ibseadmin</Username>
    <Password>1234512340023212232</Password>
    </ibsinfo>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <ADDWS xmlns="urn:schemas-iwaysoftware-com:dec2002:iwse:af">
    <sid>2FDCA46F4D0D87AEBB2EF26FDF3949B4</sid>
    <component location="services/JDEJAVA_CFIN/B0100033/GetEffectiveAddress" name="GetEffectiveAddress"/>
    <svcname>test6</svcname>
    <svcdesc>test6</svcdesc>
    <licname>test</licname>
    <mthname>GetEffectiveAddress</mthname>
    <mthdesc>test6</mthdesc>
    </ADDWS>
    </SOAP-ENV:Body>
    <SOAPAction agentName="XDSOAPAdapterFactory" cid="FC73705AC1A76B30A602E68CCD627EC2"></SOAPAction>
    </SOAP-ENV:Envelope>
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:adapter factory method: [ADDWS]
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:iwae method: [ADDWS] with idx [9]
    20070507-16:54:19 DEBUG com.iwaysoftware.ibse.edaqm.XDClassLoader:com/jdedwards/application/interop/jdejava_cfin/D0100033.class found as url jar:file:///C:\oracle\product\10.1.2\as_1\adapters\application\lib\JDEJAVA_CFINInterop.jar!/com/jdedwards/application/interop/jdejava_cfin/D0100033.class
    20070507-16:54:19 ERROR com.iwaysoftware.ibse.iwse.SimpleConfig:Error, schema generation
    20070507-16:54:19 ERROR com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory:XD[FAIL] cause: 0 subcause: 0 message: schema is missing for the component
         at com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory.buildSchemaInfo(XDSOAPAdapterFactory.java:1556)
         at com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory.addMethod(XDSOAPAdapterFactory.java:1628)
         at com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory.addService(XDSOAPAdapterFactory.java:1492)
         at com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory.handleADDWS(XDSOAPAdapterFactory.java:1376)
         at com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory.processWithDB(XDSOAPAdapterFactory.java:1858)
         at com.iwaysoftware.ibse.iwse.XDSOAPAdapterFactory.process(XDSOAPAdapterFactory.java:186)
         at com.iwaysoftware.ibse.iwse.IBSEServlet.doPost(IBSEServlet.java:550)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    pawel

    There is a note 1818432 for this issue.

  • 2004S MiniSAP ABAP: SAPGUI crashes when creating a Web Service

    I have installed the NW2004S ABAP Preview System from SDN on a VMWare Image (Windows XP, 1.7 GB Mem).
    No problems during the install. Also I was able to run the sample Web Dynpro Quiz Application.
    However when try to create a Web Service the SAP GUi crashes with the Windows Error Message "dispwork.exe has encountered a problem and needs to close." Interestingly enough the "dispwork.exe" process in the MMC continues to be green and I can reconnect.
    Here are the detailed steps if you want to try to re-produce:
    1) Select Package SAPBC_IBF_SCUSTOMER
    2) Select Function Module "BAPI_FLCUST_GetList"
    3) Right mouse click and Create -> Web Service
    4) Web Service Wizard opens, type in name for Web Service (Z_...) and continue with the default settings
    5) Creat as Local Object
    Result: After about 5 minutes of compiling the SAP GUI crashes. The Web Service is not created (checked in WSADMIN)
    Any help is greatly appreciated. Will reward points for hints which lead to a resolution.

    I'm glad to see it wasn't just me having this problem. I installed the SPS8 version of the 2004s ABAP trial a couple weeks ago and immediately tried to apply SPS9 and kernel patches, etc. (with a lot of help from your blog 3930, even though some things have changed since then).
    I ran into this same problem you describe but since there had been some other problems along the way too, I decided to uninstall the whole server and start over. Uninstallation and getting a clean installation again was a mess (maybe the new cleanup utility would have helped some) but I got past that.
    The second time through, I made a lot of improvements, which I'll list here since they may help others, but still ran into this problem in the XPRA_EXECUTION phase.
    Improvements to process:
    1) Backup database first, just in case
    2) Share the c:\SAP directory as Sapmnt so that SPAM can find the packages
    3) Add at least one extra batch process, since the default installation only gives one and more are needed for the support package installation (the easy way is to increase rdisp/wp_no_btc in the NSP* profile in C:\SAP\NSP\SYS\profile)
    4) While in the profile, change ztta/cua_area = 250000 to avoid some errors logged in trace files for having that too low
    5) Also in the profile, put the slash between the directory and file name in ssf/ssfapi_lib and sec/libsapsecu
    6) Also in the profile, add "dynpro/generate_in_separate_luw = N", as per note 949737
    7) Request and install a new license key before applying the support packages.
    All of the above were changes I made after finding errors or problems and these solve the problems. Some errors also led me to upgrade MAXDB from 7.60 build 32 to 33 (pretty painless if note 735598 is followed carefully) but I'm not sure that really solved anything.
    I tried hard to debug the WEBI_AFTER_IMPORT problem and narrowed it down to when it's trying to create a transformation for a function and XSLT_MAINTENANCE is called and then inside the Activate method and the Check method it calls. I ended up not able to solve this problem but also hoping that SPS10 would do so, as per note 973675. I just removed the AFTER_IMP method for WEBI from table OBJM temporarily while letting SPAM continue.
    I too will be waiting to see if SPS10 helps or if someone comes up with a solution. Ideally, a new version of the trial could be posted which incorporates the above improvements and includes SPS9 or SPS10 so that those installing it fresh don't have to go through so many issues...
    Message was edited by James Webster at 10/10/2006 5:36 p.m. EST to add point 7 to the list of improvements.

  • 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>

  • NullPointerException in Create J2EE Web Service Wizard

    I created an EJB2.1 session bean that has a method which returns an user defined class and also throws user defined exception. I tried to use the Create J2EE Web Service and chose to use RPC/Encoded scheme.
    The WSDL and java-wsdl mapping files were generated, but I got the following messages and exception. The webservices.xml and oracle-webservices.xml were not generated and wizard did not finish. Any ideas why would this happen?
    Web Service Log :
    Generating WSDL and mapping file
    Generating deployment descriptors
    ERROR: [failed to localize] Unable to find member message in jax-rpc mapping metadata for the exception whose wsdl message is: {http://mypackage/}MyException
    Exception dialog :
    java.lang.NullPointerException
         at oracle.j2ee.ws.tools.wsa.Util.createDeploymentDescriptors(Util.java:482)
         at oracle.j2ee.ws.tools.wsa.Util.createDeploymentDescriptors(Util.java:759)
         at oracle.jdeveloper.webservices.model.Generator.generateDDFiles(Generator.java:734)
         at oracle.jdeveloper.webservices.model.java.BaseJavaGenerator.doGeneration(BaseJavaGenerator.java:173)
         at oracle.jdeveloper.webservices.model.Generator.generateImpl(Generator.java:447)
         at oracle.jdeveloper.webservices.model.Generator.generate(Generator.java:295)
         at oracle.jdeveloper.webservices.model.WebService.saveEditImpl(WebService.java:3971)
         at oracle.jdeveloper.webservices.model.WebService.mav$saveEditImpl(WebService.java)
         at oracle.jdeveloper.webservices.model.WebService$1.run(WebService.java:3817)
         at oracle.jdeveloper.webservices.model.GeneratorUI$GeneratorAction.run(GeneratorUI.java:446)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
         at java.lang.Thread.run(Thread.java:595)

    Specifically, this happens only when there is an exception thrown from the session bean method.

  • Creating a web service for F4 help

    Hi All,
    I want to create a web service that I can consume using JavaScript and thus can integrate with normal HTML web site. I want to achieve this by two ways
    Pass table name and field name to the service and it will return the default search help
    In some cases search helps are collective search helps and they have search criteria to filter data
    How can I tackle with the 2nd point. First one looks straight. Pass table-field and the system will pick default DDIC search help and return values in table. However in case of collective help, I need to cater for the search parameters and I am not aware of any FM that will allow me to do  it.
    Any help appreciated .
    Regards
    Abhi

    Hi Marcin and everyone,
    Thanks for the precious explanations.
    I created a client and I have an exception.
    1) I made a portal service from wsdl - client side.
    2) I created a DynPage.
    3) Here is the code :
    IMyBAPI4Service client = (IMyBAPI4Service) PortalRuntime.getRuntimeResources().getService(
    IMyBAPI4Service.KEY);
    IMyBAPI4Service securedClient = (IMyBAPI4Service) client.getSecurisedServiceConnection(                 request.getUser());
    //this is null.
    if (securedClient.getURLEndPoint().getURL() == null) {      
    securedClient.setURLEndPoint(new URLEndpoint("http://<server>:<port>/irj/servlet/prt/soap/com.sap.portal.prt.soap.MyBAPI4Service?style=doc_lit"));
    Bapi_Companycode_Getdetail_Input importParams =     new Bapi_Companycode_Getdetail_Input();
    importParams.setCompanycodeid("0500");
    Bapi_Companycode_Getdetail_Output exportParams = null;
    securedClient.execute_BAPI_COMPANYCODE_GETDETAIL(importParams);                         
    Do I have to use a secured client ? What is it ?
    The exception is :
    Problem at execution: SOAP Fault Error (java.lang.NoClassDefFoundError) : java.lang.NoClassDefFoundError
    Thanks Marcin....
    Message was edited by: David Fryda

  • The steps to create a Web Service

    Does anyone have a recommended set of steps to follow to create a web service. These steps do not have to be full blown tutuorials. Simple one liners will do.
    For example,
    1) Write the interface and methods
    2) Write or generate the WSDL
    3) etcetera.....
    I am just interested in a simple guidline. As of now there are alot of technologies but no "big picture".... Sun people take note! How does it all work together. To Suns credit they are working on a step by step example, but in the meantime, please post some simple guidlines.

    Go to the Apache SOAP website to get the SOAP:
    http://xml.apache.org/soap/index.html
    You'll need to have the SOAP, xerces.jar, and a few other things to fully implement SOAP.
    The Apache SOAP website also has a good bunch of info:
    http://xml.apache.org/soap/docs/index.html
    A good place to start are the tutorials and sample code that are found at:
    http://www-106.ibm.com/developerworks/webservices/library/ws-peer1/?dwzone=ws
    http://www-106.ibm.com/developerworks/webservices/library/ws-peer2/?dwzone=ws
    http://www-106.ibm.com/developerworks/webservices/library/ws-peer3/?dwzone=ws
    http://www-106.ibm.com/developerworks/webservices/library/ws-peer4/?dwzone=ws
    Hope this helps out!

  • Create Complex Web Service using ADF BC Service Interface

    Hi,
    We have a requirement to create a number of web services with complex data types. The data types model a logical database entity and therefore contain multiple "rows" of data.
    In the most simple example, we have an entity Person and Person Address where 1 person and have multiple person addresses. We need to create a web service that encapsulates these entities and the relationship. For example the web service payload would contain:
    +<Person>+
    --<firstname/>
    --<lastname/>
    --<dob/>
    --<sx/>
    --<address>
    ----<line1/>
    ----<line2/>
    ----<postcode/>
    ----<country/>
    --</address>
    +</person>+
    We have created ADF BC components for each entity and the relationships. Now we are attempting to use the ADF BC Service Interface functionality to expose web service methods that would create and update the underlying VO/EO/Database tables with one call (i.e. create a record in table Person and one in Person Address).
    Creating a service interface for each entity VO works fine but we require a complex service encapsulating the logical entity of Person.
    Does anyone know if this is possible with ADF BC Service functionality? Or should we be looking for alternative method of generating these web services?
    Any advice greatly appreciated.
    Edited by: Jon on Feb 3, 2012 2:50 PM

    Hi,
    Did you go through following links
    http://blogs.oracle.com/middleware/entry/calling_web_services_using_adf_11g
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/webservices/ws.html

  • Creating a WEB Service for SAP enterprise connector

    Hi,
    I am using the SAP enterprise connector plugin for Netweaver 04.
    It generated me all the classes that I need for the BAPI.
    It also generated me a Proxy class.
    I want to create a service.
    This is what I've done :
    1) create a portal service.
    2) create a methode in the service :
    public Bapi_Companycode_Getdetail_Output execute_BAPI_COMPANYCODE_GETDETAIL(
    Bapi_Companycode_Getdetail_Input arg1)
    try {
    return new MyProxy_PortType().bapi_Companycode_Getdetail (arg1);
    } catch (Exception e) {
    return null;
    3) after I created a web service from the portal service.
    Is it the right way ?
    Thanks a lot.

    Hi Marcin and everyone,
    Thanks for the precious explanations.
    I created a client and I have an exception.
    1) I made a portal service from wsdl - client side.
    2) I created a DynPage.
    3) Here is the code :
    IMyBAPI4Service client = (IMyBAPI4Service) PortalRuntime.getRuntimeResources().getService(
    IMyBAPI4Service.KEY);
    IMyBAPI4Service securedClient = (IMyBAPI4Service) client.getSecurisedServiceConnection(                 request.getUser());
    //this is null.
    if (securedClient.getURLEndPoint().getURL() == null) {      
    securedClient.setURLEndPoint(new URLEndpoint("http://<server>:<port>/irj/servlet/prt/soap/com.sap.portal.prt.soap.MyBAPI4Service?style=doc_lit"));
    Bapi_Companycode_Getdetail_Input importParams =     new Bapi_Companycode_Getdetail_Input();
    importParams.setCompanycodeid("0500");
    Bapi_Companycode_Getdetail_Output exportParams = null;
    securedClient.execute_BAPI_COMPANYCODE_GETDETAIL(importParams);                         
    Do I have to use a secured client ? What is it ?
    The exception is :
    Problem at execution: SOAP Fault Error (java.lang.NoClassDefFoundError) : java.lang.NoClassDefFoundError
    Thanks Marcin....
    Message was edited by: David Fryda

  • WEB SERVICES with XML

    Hi friends,
    Kindly let me know whate is web services, how to start work on that.
    My client requirement for couple of objects is:
    1. Create a web service which can perform the following actions:
    a. Read the XML input file.
    b. Perform the action defined in the XML file and create/update/query the business objects in SAP. The service should be scalable for change in data model, if the xml file contains different attributes, it should interpret and perform the appropriate actions
    c. Output the required data as xml file based on the definition, which is defined in XML file or template
    HOW we can resolve this issue. Kindly suggest me .
    Thanks in advance.
    Regards,
    Sreenivas

    Hi
    Mainly we can say to access SAP using Internet Explorer.
    For webservice :
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/content.htm
    And this would be a nice blog for you
    SAP NetWeaver BI 7.0: How to create a WebService with deep input structure

  • Please guide me how to create a web service

    please tell  me the steps to create a web service.
    Moderator Message: Please search before posting
    Edited by: Suhas Saha on Sep 23, 2011 2:43 PM

    That's exacly why I suggested you to ask your question in the SQL/PL SQL forum, since this forum is mainly about SQL Developer and your question is instead related to PL/SQL.
    With SQL Developer you can easily create a trigger calling a stored procedure, by going to the triggers node and right clicking then selecting new trigger, and also the stored procedure in the same way, but you will then need to write the stored procedure itself and i do not know if there is a way to call a web service from there (i suspect there is but i'm not an expert in PL/SQL).
    A simple Google search may also help you there but the guys in the SQL and PL/SQL forum will surely be able to give you a better answer.
    http://www.google.it/search?client=firefox-a&rls=org.mozilla%3Ait%3Aofficial&channel=s&hl=it&source=hp&q=calling+a+web+service+from+oracle&meta=&btnG=Cerca+con+Google

  • Really impossible to create a web service for JBoss using eclipse's WTP?

    I'm starting to get nuts!!!
    I'm an experienced J2SE and J2ME Java developer... but I have huge problems creating a web service using eclipse WTP!
    The tutorials I found are for tomcat... But I want to code for JBoss and not for tomcat...!!!
    There must be somebody out there with the same issues...
    This tutorial works fine for Tomcat...
    http://www.eclipse.org/webtools/community/tutorials/BottomUpWebService/BottomUpWebService.html
    But if I do the same with JBoss... it's not possible to incoke my web service method... ok, I thought... just need to check google... BUT I didn't find any solution in the whole WWW. Found a lot of questions of people with the same problems... but no solution! :(
    Still getting that:
    ERROR [EngineConfigurationFactoryServlet] Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
    I know a little bit what a wsdd does... but isn't it the job of the WTP to create that file???
    I really hope you have some places for me to start, 'cause I don't know anymore places to ask for...
    Maybe this is a JBoss issue... I don't know...
    Or is there a tutorial on how to create a web Service using JBoss IDE?
    Sascha

    Hi Massimo,
    Quiet a few points here.
    1. Oracle Type objects do not map to XML Complex type
    2. Oracle Type objects do not map to Apex Page Item Types
    3. Apex Page Item types are substituted into the WS Request XML by a process which is part of the Web Service Reference creation through the Wizard in Apex.
    >
    After created the web service (without any errors), I click on test.
    - I can select the Operation --> CREATE_LINGUA
    - I can input data for Basic Authentication
    - I can't view Input Parameters --> Report returned no rows.
    I've tried with normal type like Varchar2 and all was ok.
    Is possible in Apex to use web services based on complex type, tipically an Array?
    >
    As you have guessed the Wizard driven Web Service Reference definition process cannot handle complex types of input parameters required by a Request. By definition the number of complex types possible are infinite, so they are not likely to come built in.
    Passing an array is no solution because finally the values passed have to be plugged into the right SimpleTypes inside a ComplexType in the Request.
    Based on your WSDL your Request will be
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cre="http://xmlns.oracle.com/orawsv/GRIMALDI/PKG_WEBSERVICES/CREATE_LINGUA">
       <soapenv:Header/>
       <soapenv:Body>
          <cre:SNUMBER-CREATE_LINGUAInput>
             <cre:PLINGUA-LINGUAT-CIN>
                <cre:LINGUAT>
                   <cre:CODICE>?</cre:CODICE>
                   <cre:DESCRIZIONE>?</cre:DESCRIZIONE>
                </cre:LINGUAT>
             </cre:PLINGUA-LINGUAT-CIN>
          </cre:SNUMBER-CREATE_LINGUAInput>
       </soapenv:Body>
    </soapenv:Envelope>However, all is not lost. You can always use the UTL_HTTP package API to construct your Request.
    Regards,

  • First time creating a web service ... help!

    I work for a logistics company and I have been tasked with
    creating a web service that will allow clients to feed in XML
    packets and our server would then take the XML, confirm it's valid
    and then process a quote and then return this quote back to the
    client as an XML packet. Here is where my confusion arrises ...
    what type of returntype is an XML packet? a "string"?

    Basically yes, A long structured string. The cffunction tag
    also
    accepts a returnType of XML, I'm not sure which is best.
    fastcougar1 wrote:
    > I work for a logistics company and I have been tasked
    with creating a web
    > service that will allow clients to feed in XML packets
    and our server would
    > then take the XML, confirm it's valid and then process a
    quote and then return
    > this quote back to the client as an XML packet. Here is
    where my confusion
    > arrises ... why type of returntype is an XML packet? a
    "string"?
    >
    >

  • Change jsp's in web service client when creating a web service in WID

    Hi, Actually , when we a web service, on websphere Integration Developer,JSP's get generated after creating the web service client.
    Those JSP's are named as input.html, invoke.jsp etc, I need to change the jsp's for good look and feel,
    But I am unalble to do that as there is no configuration information included in the jsps created by default, Please let me know, if any has come across this kind of situation and knows how to deal with.

    Hi,
    Not sure if you can get answer to WID specific questions on the Oracle-WebServices forum. Here, we are mainly talking about SOAP and WSDL, and mostly with the Oracle OC4J implementation.
    When you generate a static proxy, you can set the endpoint URL dynamically using a helper method on the class generated by JDeveloper - look for setEndpoint()
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Stub;
        public void setEndpoint(String endpoint) {
            ((Stub) _port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, endpoint);
        }The generated code uses the JAX-RPC APIs under the cover, which may also apply to Websphere's internal implementation.
    Hope it Helps,
    -Eric

Maybe you are looking for