Adding Functions to Web Services

Never mind, it's something else.

Hi,
If you have web service in source and target, we can choose SOAP adatper
External system--SOAP(Sender) PI SOAP(Receiver)--
External system
Configure IR & ID objects according to your requirement and take communication channels SOAP for sender & receiver.  At sender soap adapter no inputs required, if u go for authentication need to enable that option.
SOAP receiver end need to give system name, service no and path
Refer below links will help u
Invoke Webservices using SAPXI

Similar Messages

  • Adding attachments to web service

    Hi,
    I am working on a project which requires me to add pictures as attachments of a web service.
    This is what I do:
    messageContext = endpointContext.getMessageContext();
    SOAPMessageContext soapContext = (SOAPMessageContext) messageContext;
    SOAPMessage msg = soapContext.getMessage();
    //URL url = new URL("file:///attachments/jhe061.gif");
    URL url = new URL("http://www.google.ro/images/hp0.gif");
    DataHandler dataHandler = new DataHandler(url);
    AttachmentPart attachment = msg.createAttachmentPart(dataHandler, "image/gif");
    attachment.setContentId("image/gif");
    msg.addAttachmentPart(attachment);
    According to the J2EE tutorial, an image attachment should be added to the service. On the client side no sign of a multipart is found....
    Could anybody tell me what I do wrong?
    Thanks, d3m0

    Attachment support for webservices is not defined using the mime binding in the
    current jaxrpc1.1 implementation. It is done in an implementation specific manner.
    See the jaxrpc1.1 specfication chapter 7 where it talks about SOAP messages with
    attachments. This is optional functionality in the jaxrpc1.1 release.
    In jaxrpc1.1.2 (a follow on release) support for WS-I Attachment Profile1.0 is
    in this release defined via the wsdl mime binding. You can get this release by
    downloading the JWSDP1.4 release. This contains the required attachment support
    you need for handling attachments in webservices in a portable way. To create
    a webservice with attachments using this release is quite easy. You simply
    define your attachments in your wsdl using the wsdl mime binding. You can send
    attachments to a webservice in the SOAP request by defining the mime binding
    on the operation input and you can get attachments back from the webservice by
    defining the mime binding on the operation output. You will need to look at
    at the WS-I Attachment Profile 1.0 Specification to see how this is done.
    Also look at the documentation and release notes for the JWSDP1.4 release.
    Here is an example of the mime binding for a webservice operation on the
    output.
    <binding name="SwaTestSoapBinding1" type="tns:SwaTest1">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
    <operation name="getMultipleAttachments">
    <soap:operation/>
    <input>
    <soap:body parts="request" use="literal" namespace="http://SwaTestService.org/wsdl"/>
    </input>
    <output>
    <mime:multipartRelated>
    <mime:part>
    <soap:body parts="response" use="literal" namespace="http://SwaTestService.org/wsdl"/>
    </mime:part>
    <mime:part>
    <mime:content part="attach1" type="text/plain"/>
    </mime:part>
    <mime:part>
    <mime:content part="attach2" type="text/html"/>
    </mime:part>
    </mime:multipartRelated>
    </output>
    </operation>
    An example of using attachments in jaxrpc1.1:
    To do attachments in jaxrpc1.1 you can start from java and develop an SEI with
    signatures as follows:
    Sample SEI
    package attachmentstest;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    import java.awt.Image;
    import javax.mail.internet.MimeMultipart;
    import javax.xml.transform.Source;
    import javax.activation.DataHandler;
    import java.util.*;
    // Service Defintion Interface - as outlined in JAX-RPC Specification
    public interface AttachmentsTest extends Remote {
    public Image echoImage(Image v) throws RemoteException;
    public Image[] echoImageArray(Image[] v) throws RemoteException;
    public MimeMultipart echoMimeMultipart(MimeMultipart v) throws RemoteException;
    public MimeMultipart[] echoMimeMultipartArray(MimeMultipart[] v) throws RemoteException;
    public Source echoSource(Source v) throws RemoteException;
    public Source[] echoSourceArray(Source[] v) throws RemoteException;
    public DataHandler echoDataHandler(DataHandler v) throws RemoteException;
    public DataHandler[] echoDataHandlerArray(DataHandler[] v) throws RemoteException;
    Sample Client
    private boolean dataHandlerTest() {
         TestUtil.logMsg("AttachmentsTest:(dataHandlerTest)");
         boolean pass = true;
         DataHandler response;
    try {
    DataHandler dataHandler = new DataHandler(sourceFileURL);
         TestUtil.logMsg("Test request/response of DataHandler ...");
         TestUtil.logMsg("dataHandler="+dataHandler);
         response = port.echoDataHandler(dataHandler);
         if (!(response.getContent().equals(dataHandler.getContent()))) {
              TestUtil.logErr("DataHandler comparison mismatch");
              pass = false;
    } catch (Exception e) {
         TestUtil.logErr("Caught exception: " + e.getMessage());
    TestUtil.printStackTrace(e);
         pass = false;
         printTestStatus(pass, "AttachmentsTest:(dataHandlerTest)");
         return pass;
    private boolean sourceTest() {
         TestUtil.logMsg("AttachmentsTest:(sourceTest)");
         boolean pass = true;
         Source response;
    try {
    Source source = new StreamSource(xmlFileURL.openStream());
         TestUtil.logMsg("Test request/response of Source ...");
         response = port.echoSource(source);
         // Code for comparison here
    } catch (Exception e) {
         TestUtil.logErr("Caught exception: " + e.getMessage());
    TestUtil.printStackTrace(e);
         pass = false;
         printTestStatus(pass, "AttachmentsTest:(sourceTest)");
         return pass;

  • Error occured while Adding a reference Web Service(BizTalkServer2009_Tutorial2)

    Hi,
    I was going through the Biztalk tutorials. While doing the second tutorial of web service I got stuck while adding reference to the Web Service.
    Steps I did:
    Add service reference(by right clicking my project) --> Advanced -->  Add Web Reference -->  URL : http://localhost/b2bsupplierprocesspo/process.asmx
    But somehow this URL is not accesible over there. I got following error:
    Please suggest/guide me on this.
    Thanks, Girish R. Patil.

    The error clearly states the reason for failure, being "CS0016: Could not write to output file ..... ..... - Access is denied."
    The directory in question is the "C:\Windows\Microsoft.Ner\Framework\v2.0.50727\Temporary ASP.NET Files". So two things
    Does the tutorial mention that the Web Service should be hosted under a .Net V2.0 Application Pool? If so then please give "Full Control" permissions to the above directory for the BizTalk Service Accounts (which also should be part of your "BizTalk Isolated
    Host Users" Group.
    If not then the service has to be hosted in a .Net v4.0 app pool. Change the Application Pool Settings through IIS Manager and give permissions to a similar folder (Temporary ASP.Net) but under the Framework\V4.0.... directory.
    Regards.

  • Problem  pl/sql function as web service in OAS as omni portlet

    Dear All,
    I try to use pl/sql function from package as web service in OAS as omni portlet. This function returning, for example, the result of searching as number of rows (Id, name).
    As I have understood, OAS omni portlets understands only J2EE 1.3(oracle) web service (which is chosen on the first step of the making the service from PL/SQL). Since in the event of choice J2EE 1.3(JAX-PRC) OAS can not analyse the answer SOAP on elements.
    I try return types:
    1. xml. Kind of <rowset><row><id>1</id><name>John</name></row><rowset>.
    2. ref cursor – can`t use
    3. varray of records – can`t use.
    At the best, answer recognizes as line, rather then as array element.
    Thank you in advance for answer

    Dear All,
    I try to use pl/sql function from package as web service in OAS as omni portlet. This function returning, for example, the result of searching as number of rows (Id, name).
    As I have understood, OAS omni portlets understands only J2EE 1.3(oracle) web service (which is chosen on the first step of the making the service from PL/SQL). Since in the event of choice J2EE 1.3(JAX-PRC) OAS can not analyse the answer SOAP on elements.
    I try return types:
    1. xml. Kind of <rowset><row><id>1</id><name>John</name></row><rowset>.
    2. ref cursor – can`t use
    3. varray of records – can`t use.
    At the best, answer recognizes as line, rather then as array element.
    Thank you in advance for answer

  • Adding attachments to Web Service call

    Hi
    Does Bea's web service classes include support for adding attachments to the soap message sent by a web service?
    How do I do it? or otherwise, how do I get through the abtraction down to the soap message so I can add it manually?
    I have both a weblogic.webservice.core.rpc.StubImpl and a javax.xml.rpc.Service to work with, I'm guessing it's somewhere deep down in the context of the Service...?

    Hi
    Does Bea's web service classes include support for adding attachments to the soap message sent by a web service?
    How do I do it? or otherwise, how do I get through the abtraction down to the soap message so I can add it manually?
    I have both a weblogic.webservice.core.rpc.StubImpl and a javax.xml.rpc.Service to work with, I'm guessing it's somewhere deep down in the context of the Service...?

  • Exposing Portal's User Management functionality via Web Service issue

    Dear experts,
    I am trying to create and deploy a web service that will tap into User Management functionality (UMFactory) of the Portal. I created a Java project with a Java class with one of the methods exposed via Web Service. Since this is a Java project and not a Web Dynpro project, a number of external jars and libraries, but I don't know how to add WD_RUNTIME and I am guessing that my problem is related to that.
    When trying to run the application, I receive the following error message when trying to envoke UMFactory:
    java.lang.NoClassDefFoundError: com/sap/tc/logging/Location
         at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:166)
         at com.hollister.getusers.GetPortalUsers.getPortalUsers(GetPortalUsers.java:75)
         at com.hollister.getusers.GetPortalUsers.main(GetPortalUsers.java:39)
    Please, help.
    Thanks,
    Alex

    Container Managed Authentication. Does everything you need.

  • OnError() function in web service: impossible?

    Hi,
    Context: A ColdFusion web service with application.cfc and OnError() function.
    I want the OnError function to log and email me when exceptions occur in web service but for some reason OnError() is never fired in such a case.
    It's weird because it works if a .cfm page is called instead of a .cfc!
    Is it a standard behaviour with CF webservice? Is there a workaround?
    Thanks

    Hi Dan,
    Thank you for reading and suggesting. The fact is I would like to use onError() for what it is supposed to provide - and also to understand the mechanism.
    My onRequestStart() sets request variables to bar.cfc so application.cfc globally plays fine with the webservice cfcs. Well... except for error handling
    I found that if exception occurs in application.cfc it is actually caught by onError().
    But if exception occurs in webservice cfcs then it is not caught by onError() and a ugly SOAP error is sent to consumer instead.
    Here are my application.cfc and bar.cfc webservice components. They are pretty simple so I don't see why onError() is not fired:
    <cfcomponent displayname="Application" output="false">
        <cfscript>
            this.Name                = "foo";
            this.applicationTimeOut    = CreateTimeSpan(0,1,0,0);
            this.sessionManagement    = false;
            this.setClientCookies    = false;
            this.clientManagement    = false;
            this.scriptProtect        = "all";
        </cfscript>
        <cffunction name="onApplicationStart" access="public" output="false">
            <cfset application.foo= "foo" />
        </cffunction>
        <cffunction name="onRequestStart" access="public" output="true">
            <cfargument name="targetPage" type="string" required="true" />
        </cffunction>
        <cffunction name="onError" access="public" returnType="void" output="true">
            <cfargument name="Exception" required="true" />
            <cfargument name="EventName" type="string" required="true" />
            <cfmail from="toto" to="[email protected]" subject="error">
                error
            </cfmail>
        </cffunction>
    </cfcomponent>
    <cfcomponent displayname="bar">
        <cffunction name="test" access="remote" returntype="cpTest" output="false">
         <!--- Throws an exception as b does not exist. This must be caught by onError() but it is not --->                   
         <cfset a = b />
         </cffunction>
    </cfcomponent>
    Any clue?
    -Salvo

  • Problem while Adding the SAP Web service in Visual Studio 2005

    Hi all,
    I have created the web service thru SOAMANAGER.
    Now I am just trying to access that web service in Visual Studio 2005.
    I am not able to access...
    Please give me the procedure , if any body knows.
    -Balajee Jeyaraj.

    - Start Tcode SOAMANAGER
    - Now it depends on your setup, you might have to press "Logon" and.......logon
    - Click tab "Business Administration"
    - Click "Web Service Administration"
    - Choose "Service" for "Search by"
    - Enter a search pattern (E g Z*) and press "Go"
    - Mark the line of your web service
    - Press "Apply Selection"
    - Click the link "Open WSDL document for selected binding"
    - your web browser opens.
    - copy and paste the link into Visual Studio.
    I'm always adding    &wsdl=1.1     at the end of the link.

  • Calling RFC-enabled function as web service using XI 3.0

    Hi,
    I have a problem when trying to use web services (sending a soap-req. to XI 3.0 based on the generated WSDL from Integration Directory).
    According to the message monitoring, all steps in the central pipeline executes just fine until the last step - CALL ADAPTER.
    I don't think this is an authorization issue since I have tested the XIISUSER/pwd against the URL for adapter engine.
    Seems to me that the problem is related to the msg sent to AE:
    "HTTP response contains status code 401 with the description Unauthorized XML tag Envelope missing in SOAP message header (SAP XI Extension)"
    How to proceed from here?

    Hi Torstein,
    <i>Seems to me that the problem is related to the msg sent to AE:
    "HTTP response contains status code 401 with the description Unauthorized XML tag Envelope missing in SOAP message header (SAP XI Extension)"
    </i>
    According to you, the problem occurs within the SOAP envelope. Does your incoming SOAP message looks like the one below here?
    If that's not the case, then make sure your SOAP/Web Service client is sending a valid SOAP envelope/request (like the sample below) to XI.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!--  Inbound Message -->
    <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
    <SOAP:Header/>
    <SOAP:Body>
    <ns1:WebServiceRequest xmlns:ns1='http://company.com/xi/webservice/myws' SOAP:actor='http://schemas.xmlsoap.org/soap/encoding/' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
    <Customer xsi:type='xsd:string'>000025</Customer>
    <CompanyCode xsi:type='xsd:string'>BE01</CompanyCode>
    <KeyDate xsi:type='xsd:string'>20050310</KeyDate>
    <Selection>
    <OpenItems xsi:type='xsd:string'>X</OpenItems>
    <ClearItems xsi:type='xsd:string'></ClearItems>
    <GLItems xsi:type='xsd:string'></GLItems>
    <Dunning>
    <From xsi:type='xsd:string'>A</From>
    <To xsi:type='xsd:string'>Z</To>
    </Dunning>
    </Selection>
    </ns1:WebServiceRequest>
    </SOAP:Body>
    </SOAP:Envelope>
    Cheers,
    R.

  • How to call java function through Web Service

    Hello Experts,
    I want to call a method through Java Web Service in my abap code. Is it possible ? If so, plz guide me.
    Requirement: In SD module user enters the PAN, on after entering PAN in want to validate it on NSDL. For that a Web Service has already been deployed on a Web Server. and that the deployed Web Service I want to call in abap code.

    Hi,
    check this link
    Re: Call to WS from one backend to other backend
    regards
    afzal

  • Issue of invoke wf_engine function from web service client.

    hi,
    I want to update work flow item attribute from web service client through soa gateway. but got the below exception:
    Error Description Error occured while service was processing.
    Error Details oracle.apps.fnd.soa.util.SOAException: ServiceProcessingError: Exception returned from JCA Service Runtime. file:/pim/oracle/DEV/inst/apps/DEV_pimenv/soa/PLSQL/1318/SETITEMATTRTEXT.wsdl [ SETITEMATTRTEXT_ptt::SETITEMATTRTEXT(InputParameters) ] - WSIF JCA Execute of operation 'SETITEMATTRTEXT' failed due to: Error while processing an API interaction execution. An error occurred while processing the interaction for invoking the WF_ENGINE.SETITEMATTRTEXT API. Cause: oracle.tip.adapter.apps.AppsContextValidationException: Cannot set Context ; nested exception is: ORABPEL-11812 Error while processing an API interaction execution. An error occurred while processing the interaction for invoking the WF_ENGINE.SETITEMATTRTEXT API. Cause: oracle.tip.adapter.apps.AppsContextValidationException: Cannot set Context Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD. Contact oracle support if error is not fixable. at oracle.apps.fnd.soa.provider.services.jca.JCAHandler.invoke(JCAHandler.java:173) at oracle.apps.fnd.soa.provider.services.jca.JCAHandler.handleRequest(JCAHandler.java:120)
    it indicate " cannot set context". but there is no method of wf_engine api to set it.
    Thanks,
    Rock

    Hi, Buddy,
    Did you fix your issue?
    Now, I have the same issue, EBS version is 12.1.3. Using Soapui invoking PL/SQL, then go back to SOA monitor to check the error message.
    Could you please give me some advises?
    Thanks,
    Jackie

  • Problem in adding a new web service provider system in NWA SOA

    Hello,
    Portal version : CE7.3 EHP1 SP9
    I am trying to add a web service system in "NWA > SOA > Technical Configuration > System Connections > Provider Systems > New".
    I have web service WSDL URL with me which is like: -
    https://webservicehostname/dswsbobje/qaawsservices/biws?WSDL=1&cuid=AfO9g_JmE0ZOiZzdvNtCbxg
    When I enter this URL in input field "WSIL URL" and click on "Next", I get error saying: -
    "Cannot connect to https://webservicehostname:443/dswsbobje/qaawsservices/biws?WSDL=1&cuid=AfO9g_JmE0ZOiZzdvNtCbxg
    HTTP Message : Unable to connect to webservicehostname:443 - Connection refused".
    (attached screenshot)
    Now, it puzzles me that why & how it is appending colon & port number in the entered URL as protocol is already https?
    Basis & network team is looking into connectivity related settings, but from my side, I wanted to answer/know why & how this port number is getting appended in entered URL and how to prevent it.
    Any ideas/help please.
    Thanks & Regards,
    Amey Mogare

    Hello Atul,
    In WSDL URL and content itself, there is no port number specified as protocol used is https.
    (screenshot).
    The problem is, after clicking on "Next", system is somehow inserting port number in between URL which it ideally should not as URL protocol is https.
    Thanks & Regards,
    Amey Mogare

  • Adding Faults to Web Services created from JCDs

    Is anyone aware of a way to add faults, other than the default JavaException, to the service definition of a web service created from a JCD?

    Hi
    You could use se80 and click "Repository Information system"->Enterprise Services->
    Service Definitions->search your WebService Defition->Delete it.

  • OIM (Xellerate) Provisioning Functionality with Web Services

    Hi,
    Has anyone had any experience with needing to issue user provisioning requests to Oracle Identity Manager (formally Xellerate) using web services?
    I envision that it would most likely involve using SPML as the standard communication protocol within the SOAP messages.
    From my readings, the current version of OIM does not offer web services as one of its interfaces, but I'd like to check if anyone has already done this themselves?
    Any help is appreciated.
    Thanks.

    If you have made some custom connector using internal oim api, you can made your own web service interface but outside of OIM infrastructure.
    We have made some custom connector test directly from Eclipse, before integrate it inside OIM, so if you want to provide a web service interface to publish some OIM funtionality should be possible do it using OIM API.
    using generic connector let you use only a SPML webservice for provisioning resources, your webservice must parse the SPML message and then run your own logic, however you must login to OIM and then assign the resource to the user using the connector, There is not a web service interface to do it outside OIM infrastructure.

  • Adding Authentication to Web Service using JDeveloper

    Hi Gurus,
    I am new to weblogic 10.3 and Jdeveloper 11.1.3. Using Jdeveloper, I imported few packages from database , right clicked and published them as a webservice on a weblogic server. I did not select any WLS policies. The web service is working fine. Now i want to add some basic authorization (username/password) to this webservice.
    Which policy should i use ?
    Where should i configure this username\password so that all the webservices uses same user for authenctication ? Do i have to create this user on the weblogic server? If yes then how.
    Thanks in Advance.
    Jack

    Hi,
    If you are using JAXWS based WebService then you can give it a try:
    http://weblogic-wonders.com/weblogic/2010/01/09/username-token-in-jaxws-webservice/
    This sample demonstrates ..How we can use UserName/Password Authentication in JAXWS Service. This will be very Easy for you to develop using JDeveloper...U need to Just the add Following XML file as a Policy inside your Application.
    Using the following Policy:
    <font color=maroon>
    <?xml version=”1.0″?>
    <wsp:Policy
    xmlns:wsp=”http://schemas.xmlsoap.org/ws/2004/09/policy”
    xmlns:sp=”http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512″>
    <sp:SupportingTokens>
    <wsp:Policy>
    <sp:UsernameToken
    sp:IncludeToken=”http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512/IncludeToken/AlwaysToRecipient”>
    <wsp:Policy>
    <sp:WssUsernameToken10/>
    </wsp:Policy>
    </sp:UsernameToken>
    </wsp:Policy>
    </sp:SupportingTokens>
    </wsp:Policy>
    </font>
    Thanks
    Jay SenSharma

Maybe you are looking for

  • Error in copying A/P Inv to Credit memo

    Hi pple, Am trying to copy some A/P invoices to credit memos without success and the error msg am getting is: "No matching records found 'A/P CREDIT MEMO' (ORPC) (ODBC-2028) (Msg 131-183)" Anyone with an idea about how I should solve this??? Regards,

  • Succesful instalation of 8.1.6

    This is my love story .;) I trying to install this version last 5 days. And here is results: RH7.0 - dbassist start to create database, and stops on 0% RH6.0 - On the same place freeze machine RH6.1 - Going to 54%, creating JServer and stops with mes

  • BPM worklist app views are not visible in IPM task viewer

    Hi, we upgraded our system from 11.1.1.3.0 to weblogic 10.3.5.0 SOA 11.1.1.5.0 with BPEL processes ECM with IPM and UCM 11.1.1.5.0 after upgrade i have problem with profiles in IPM task viewer page. Views are created in BPM worklistapp and all users

  • Can't I use Field NE SPACE in READ statement ?

    What is wrong with the below statments  READ TABLE t_zdadp_rpt WITH TABLE KEY t_zdadp_rpt-zdesc NE SPACE.    READ TABLE t_zdadp WITH TABLE KEY zdesc NE SPACE. Could you pleae help

  • File save as

    What happened to file save as . . . ? Now we have this silly duplicate nonsense and then after the duplicate command I have to save to rename it etc. Any extra mouse click for what !!!! Any ideas anybody - Maybe I'm doing something wrong here. Thanks