Batch job invoke Sharepoint web service

Hi all,
Can BODS job invoke a SharePoint web service which accepts two parameters?
The first parameter is a string and the second one is an XML.
Any inputs will be greatly helpful.
Thanks and Regards,
Prateek

first test invoking the batch job webservice using SoapUI
does your client application logs the SOAP message that is sent to DS WebServer ?
Check the %LINK_DIR%\lg\webservices.log if there is any errors logged in it ?

Similar Messages

  • How to start a batch job through a web service call

    I have a batch job created Data Services that I would like to be able to start through a web service call.
    I have exposed the batch job as a Web Service through the mangement console.
    The Integrators guide is not the clearest piece of documentation that I have ever read so I'm now having a little trouble.
    In C# I'm issuing the following statements:
                DataServices.Batch_JobsClient batchClient = new DataServices.Batch_JobsClient();
                batchClient.Open();
                DataServices.Testjob_Match_GlobalVariables myVar = new DataServices.Testjob_Match_GlobalVariables();
                myVar.ptd_FilePath = "D:
    Jobs
    Test";
                batchClient.Testjob_Match(myVar);
    That all executes without error -- but the job is not started. Obviously I'm missing a step here but I can not figure out what is needed to acutally start the job execution from the Integrators Guide.
    Any help would be appricated.

    first test invoking the batch job webservice using SoapUI
    does your client application logs the SOAP message that is sent to DS WebServer ?
    Check the %LINK_DIR%\lg\webservices.log if there is any errors logged in it ?

  • How to execute XML batch commands using SharePoint Web services or Client Object Model

    Hi,
    I have a requirement to execute some batch commands to update SharePoint View Style, how can i do it using SharePoint webservices or SharePoint Client Object model.
          I need to execute the following Batch command over a particular web.
    <Method ID="UpdateView">
      <SetVar Name="Cmd">UpdateView</SetVar>
      <SetList Scope="Request">{GUID of List}</SetList>
      <SetVar Name="View">{GUID of View}</SetVar>  
      <SetVar Name="ViewStyle">6</SetVar>
      <SetVar Name="RowLimit">100</SetVar>
      <SetVar Name="Paged">TRUE</SetVar>
    </Method>

    Hi
    I tried it already... But UpdateView Method in the Views.asmx and Lists.asmx, both are not supporting for updating the style of the view (like Boxed, Newsletter...).
    If you have any code sample which will do this job with any of the SharePoint web services, please share it..

  • Invoke a Web Service - 401 Error - Authentication?

    I've been through the Integrator's Guide for Oracle Business Intelligence Enterprise Edition, attempting to setup Action Framework so we can use OBIEE to push data to Sharepoint 2011.
    I came across the article below and found it to be helpful in getting past the first hurdle which was identifying why the actionframeworkconfig.xml file was not being read properly.
    ActionFrameworkConfig.xml structure changed from 11.1.1.5 to 11.1.1.6
    I am working in 11.1.1.6.
    The concern or question I have is I am attempting to access a WSDL from Sharepoint that does not allow annonymous access. I take the steps below and get the error 'HTTP connection error code is 401'.
    1) Choose under Create... 'Action' from within OBIEE 11g
    2) Pick 'Invoke a Web Service'
    3) In the WSDL URL field, populate it with the path for the Sharepoint WSDL.
    a. https://sharepointhost/_vti_bin/Lists.asmx?WSDL
    4) Choose 'Open'
    5) Receive error.
    So my question is, is there a way to control the authentication here?
    Thank you in advance.

    First you map your service .wsdl file in the external resources as a WebService.
    Create a module in your Catalog and right click >> Catalogue Component >> Web Service
    Then you call it like it was an object in your code...
    String result = MyService.returnMeAString();
    logMessage(result);

  • Issue: BPEL invoking Axis web service

    Hi
    We are calling a Axis web service from BPEL.. The web service has been defined to be a request only 1 way service. The axis service takes around 3-5 minutes to complete the job( data insertion in DB).. But seems like when BPEL invokes the web service; BPEL thread is waiting (thread is not released) and the BPEL process does not move forward until the web service completes the job....
    Any pointers on how the deal with the issue will be helpful!!
    Thanks

    Hi Lovenish,
    Goto console-> select domain> Configuration->JTA
    Check timeout seconds.
    2. i don't know what kind of partner link you are invoking.
    check composite.xml, is there any property like retry.interval .
    3. ◦SyncMaxWaitTime: The maximum time a request and response operation takes before timing out.
    The maximum time a request/response operation will take before it times out. The default value is 45 seconds.
    Regards,
    Padmanabham

  • DII unexpected encoding style with SharePoint Web Service

    I am trying to call a dynamic sharepoint web service in Java using DII (Dynamic Invocation Interface)
    but I kept getting error:unexpected encoding style: after the invoke expected=http://schemas.xmlsoap.org/soap/encoding/, actual=
    I am trying to call web service - GetWebCollection()
    String endPoint="http://%SPSERVER/_vti_bin/Webs.asmx";
    String nameSpaceUri = "xmlns:xsi";
    String serviceName = "Webs";
    String porttype="WebsSoap";
    String NS_XSD = "http://www.w3.org/2001/XMLSchema";
    ServiceFactory factory =
    ServiceFactory.newInstance();
    Service service =factory.createService(new QName(serviceName));
    QName qport = new QName(porttype);
    hpsharepoint.Webs webs = new hpsharepoint.Webs_Impl();
    Call call = (Call) webs.createCall(qport);
    call.setProperty(call.USERNAME_PROPERTY,kuser);
    call.setProperty(call.PASSWORD_PROPERTY,password);
    call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY, "http://schemas.xmlsoap.org/soap/encoding/");
    call.setProperty(Call.SOAPACTION_USE_PROPERTY,
    new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY,"http://schemas.microsoft.com/sharepoint/soap/GetWebCollection");
    call.setTargetEndpointAddress(endPoint);
    call.setOperationName(
    new QName(nameSpaceUri,"GetWebCollection"));
    String[] params = {};
    NodeList list=(NodeList)call.invoke(params);
    ==========================
    This is the soap 1.1
    ==========================
    POST /_vti_bin/Webs.asmx HTTP/1.1 Host: <server> Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://schemas.microsoft.com/sharepoint/soap/GetWebCollection" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetWebCollection xmlns="http://schemas.microsoft.com/sharepoint/soap/" /> </soap:Body> </soap:Envelope>

    Jose,
    When you work with Web Services, the common development flow is as follow:
    1) develop your service endpoint. You can start from JAVA code or PL/SQL package (bottom-up) or from a WSDL (top-down). In your case, you need to start from the Store Procedures.
    2) deploy your service endpoint. As the result of the deployment step, you will have a WSDL available on your application server, that advertise the service interface.
    3) generate the static client proxy from the WSDL (service contract).
    4) invoke the service using the proxy from step 3 or use dynamic invocation APIs to make direct call, without to use a static proxy.
    Bypassing step 3) usually requires a dipper understanding of SOAP linguana, so it's not the easiest way to get started.
    Based on the statement you made, it looks like you are starting from step 3)
    From the error message, it seams that you are trying to invoke a Web service that was deployed using 'literal' encoding (either document/literal or RPC/literal) with a client generated for RPC-encoded message format. In the JDeveloper Wizard, you have an option to change the message format to RPC/Encoded.
    Hope this helps,
    eric

  • Problem invoking a web service from soa11g BPEL.

    Hi ,
    I am trying to invoke a web service from soa bpel 11g composite.
    We have the wsdl, wsdl URL of the web service along with the user name , password credentials.
    Initially w/o any WS policy attached and testing the composite, it fails with the below message
    *<fault>*
    *<bpelFault>*
    *<faultType>0</faultType>*
    *<remoteFault>*
    *<part name="summary">*
    *<summary>An Authentication object was not found in the SecurityContext</summary>*
    *</part>*
    *<part name="detail">*
    *<detail>javax.xml.ws.soap.SOAPFaultException: An Authentication object was not found in the SecurityContext</detail>*
    *</part>*
    *<part name="code">*
    *<code>soap:Server</code>*
    *</part>*
    *</remoteFault>*
    *</bpelFault>*
    *</fault>*
    *<faultType>*
    *<message>0</message>*
    *</faultType>*
    *</messages>*
    So I have gone back to the composite and added the WS policy (oracle/wss_username_token_client_policy) by Right clicking on web service -> Configure WS Policy -> Security -> oracle/wss_username_token_client_policy -> OK.
    After this I have added the following binding properties 'oracle.webservices.auth.username' , 'oracle.webservices.auth.password' with the respective values and deployed it again.
    Even then I face the same issue. I have looked into the EM console and found the HTTP username and password properties were blank for this Web service even though the WS policy was attached.
    Later I have tried editing the username pwd from the EM console, only to find out that the composite was now failing in the previous step (an ordinary db adapter with a select statement) even before it reaches the web service invocation.
    If I redeploy the composite, the http username and pwd properties in the EM console are erased and when i test it, it errors out at the web service invocation with the same issue again.
    Any pointers on how to solve this issue ??
    How can I figure out what is the security policy the web service is using ??
    Regards,
    Shiva Kiran

    Hi,
    Can anyone help me with this ??
    I guess I am not able to send the authorization credentials via the request to the web service invocation.
    Plz help ! This is a bit urgent..
    Regards,
    Shiva Kiran

  • How to pass credentials/saml token access sharepoint web service ex:lists.asmx when sharepoint has single sign on with claims based authentication

    How to pass credentials/saml token exchange to the sharepoint web service ex:lists.asmx when sharepoint has single sign on with claims based authentication 
    Identity provider here is Oracle identity provider 
    harika kakkireni

    Hi,
    The following materials for your reference:
    Consuming List.asmx on a claims based sharepoint site
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/f965c1ee-4017-4066-ad0f-a4f56cd0e8da/consuming-listasmx-on-a-claims-based-sharepoint-site?forum=sharepointcustomizationprevious
    Sharepoint Claims based authentication and Single Sign on
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2dfc1fdc-abc0-4fad-a414-302f52c1178b/sharepoint-claims-based-authentication-and-single-sign-on?forum=sharepointadminprevious
    Sharepoint Claim Based Authentication Web Service issuehttp://social.msdn.microsoft.com/Forums/office/en-US/dd4cc581-863c-439f-938f-948809dd18db/sharepoint-claim-based-authentication-web-service-issue?forum=sharepointgeneralprevious
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Visual Studio 2012: Can't access Sharepoint Web Services because of Discovery Credentials Prompt

     
    Hi.
    I've exactly the same problem that is descripted
    here, so I'll add its description here.
    My SharePoint is 2010
    I am trying to access the web services that are located in this url:
    http://<part_of_th_url_omitted>/_vti_bin/Lists.asmx. I have no problem accessing
    this URL using my broswer, that is, when I type the URL and my browser's address bar and press enter, I can see the list of the services that are available. I encounter no problem by accessing this site through my browser at all.
    However, when I try to access the services from that URL (http://<part_of_the_url_omitted>/_vti_bin/Lists.asmx),
    a Discovery Credential Dialog box prompts me for my username and password. SO what I do is I enter my username and password that I used to access the sharepoint using my browser, the problem is, the dialog box doesn't seem to accept the username and password
    that I enter as the dialog box is keep on appearing.
    Below are the detailed steps on how I go about in adding the Web Services.
    1. From the Solution Explorer, I right click on the "Service References" folder.
    2. From the context menu that appears, I Click on "Add Service Reference...". The "Add Service Reference" Dialog box will appear.
    3. From the "Add Service Reference" dialog box, I click on the "Advanced,,," button which can be seen at the bottom-left of the dialog
    box. The "Service Reference Settings" Dialog box will appear.
    4. From the "Service Reference Settings" dialog box, I click on the "Add Web Reference..." dialog box. The "Add Web Reference"
    Dialog box will appear. This is the dialog box where I can type the URL of the service that I want to access. So I type "http://<part_of_the_url_omitted>/_vti_bin/Lists.asmx".
    AFter typing that, I click on the Go button (which is the green arrow button at the right of the address bar of this dialog box).
    5. After doing that, a prompt dialog box will appear which has the title "Windows Security" and it is aking for my username and password. SO
    what I do is I enter the Username and the Password that I use in accessing the sharepoint site (http://<part_of_the_url_omitted>/_vti_bin/Lists.asmx)
    6. The prompt seems to accept the Username and Password, but after that, a new dialog box appeared with the title "Discovery Credential" and
    it says "The Service 'http://<part_of_the_url_omitted>/_vti_bin/Lists.asmx' requires a username and
    password". SO what I do is I enter again the un and pw that I use to access the sharepoint site, the one that I used inm the previous dialog box.
    7 After entering the username and the password and clicking the OK button. The dialog box reappears still asking for a username and a password, but this
    time, it shows a different message. It says "The Service 'http://<part_of_the_url_omitted>/_vti_bin/Lists.asmx/$metadata'
    requires a username and password". SO it really, what oonly changed is the URL, it has now the $metadata at the end. What do I do? I eneter the username and password again.
    8. After clicking Ok again, the dialog box reappears, now it says "The Service 'http://<part_of_the_url_omitted>/_layouts/1033/error.aspx'
    requires a username and password." Now it shows a very different username. Of ocurse, I still type in the username and password and click Ok.
    9. after doing that, the dialog box reappears again and it shows the same message as in step 6. So I do steps 6, 7 and 8 in a loop.
    10. When I finally get tired of entering the username and password, I click on cancel. The message box reappears again. So I click on cancel again. After
    doing that, I can then, surprisingly, see the list of the web services. However, not surprisingly, I still can't use it because the "Add Reference" button which I need to click in order to use the Web services is disabled. So I can only see the list
    of the services but I can't use it.

    Hi Gaston,
    I would suggest you the following thread, check whether it meet your scenario, it shows that if you have set IE options to remember the username and password, and you have enter wrong password before, this issue may happen:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/a7f466a5-0e4a-4f75-ad29-9591e2357e10/sharepoint-web-services-visual-studio
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Extra Tag Getting Added while invoking a Web service

    Hi all,
    We are facing an issue while trying to invoke a web service. We are assigning values to invoke input variable of the invoke. The issue is that while invoking an Extra element named “input” is getting added.
    For Eg: The required one is
    <messages>
    <invoke_Webservice_Input>
    Payload
    </invoke_Webservice_Input>
    </messages>
    But what is getting passed is :
    <messages>
    *<input>*
    <invoke_Webservice_Input>
    Payload
    </invoke_Webservice_Input>
    *</input>*
    </messages>
    Due to this, the invoke is failing and we are not able to proceed. The error which we are getting is "*exception on JaxRpc invoke: unexpected null*"
    If any has faced similar issues, please share your experience.
    PS: The same wsdl is working in other environments. only thing we changed is the Endpoint URI and that endpoint URI is also accessible.
    Thanks
    Mohan

    can u re import the wsdl into the process and then change the endpoint uri... undeploy the previous process.. bounce the server and then deploy the new process and try

  • Unexpected element name: expected error while invoking external web service

    Hi,
    In JDeveloper when I invoke external web service call, I am getting following exception
    "unexpected element name: expected=..."
    But the same application works fine in .NET. Can someone help me as to why I am getting the exception only in JDeveloper and how to fix this exception.
    Thanks.

    Hi,
    Without more information, it will be hard to help, and tell you what could be teh issue.
    Usually, this kind of error occurs when the payload and the WSDL schema are out of sync, for example if the order of the element on the wire do not match the order in a sequence declaration, you may get this error.
    In such case, .NET handle the XML as if it was a 'all' -- no specific order -- and deserialize the message properly.
    Hope this helps,
    -eric

  • Web Service Proxy client to invoke a Web service on SSL (Jdev 10.1.3.1)

    Hi,
    I have to develope a Web Service proxy client to invoke a web service on SSL. First I'm testing with OC4J 10.1.3.1 and JDEV 10.1.3.1 and did this:
    1) Developed a basic PL/SQL Web Service with JDEV and publish on my standalone OC4J.
    2) Made a test with a browser, it worked OK
    3) Generated a proxy client from JDev 10.1.3.1 to invoke web service, it worked OK
    --- Now make it work on SSL----
    4) Then, added SSL configuration to oc4j , generated a certificate with keytool (updated server.xml, secure-web-site.xml), and shutting down and starting the OC4j instance.
    5) Import the certificate to JAVA_HOME/jre/lib/security/cacerts
    6) Test web service from browser on https and worked OK.
    7) When tried to modified proxy client (generated in step 3) to make it work on SSL, I realized that just changing the END_POINT to the new url (https) it worked!
    Questions----
    1.- By default the proxy client generated from JDEV 10.1.3.1 knows how to deal with SSL conections?
    2.- If I dont have previously the server certificate to import it into JAVA keystore (cacerts) how could I ,from proxy client code, capture it and import it before the validation occurs... because if the certificate is not in keystore , the program fails.
    Thanks in advance
    J.

    Hi,
    Could you please provide me with the steps necessary to create a web service proxy client through JDeveloper or any other mechanism when 2 way SSL (requiring client authentication) is enabled.
    Thanks a lot in advance
    Nilesh

  • Invoking a web service from jcd

    hi all,
    Is there any built-in class in CAPS5.1 for invoking a web servervice from jcd directly. Or is there any some other automation/mechanism to achieve the same, plz provide me any sample code avilable for the same.its very urgent for me.
    Thanks

    Hello rss,
    If you want to invoke a web service from a JCD you will have to build the SOAP message using JAX-RPC or AXIS and then programmatically creat an HTTP connection.
    Or you can leverage the HTTP(S) eWay and then you only have to build the SOAP message.
    Or use eInsight. You can import a WSDL into eInsight and eInsight will offer you a business process Activity to invoke the web service operations defined in the WSDL.

  • Invoking a web service from dynamic client in weblogic 7

    Is it possible to invoke a webservice from dynamic client in weblogic 7. Because i tried and it doesn't work. But it works with WL 8.1
    I don't see any samples on the net for weblogic 7.

    Hello rss,
    If you want to invoke a web service from a JCD you will have to build the SOAP message using JAX-RPC or AXIS and then programmatically creat an HTTP connection.
    Or you can leverage the HTTP(S) eWay and then you only have to build the SOAP message.
    Or use eInsight. You can import a WSDL into eInsight and eInsight will offer you a business process Activity to invoke the web service operations defined in the WSDL.

  • Issues in invoking a web service from a JAVA/BPEL client...

    We are trying to invoke a web service from a JAVA/BPEL client using org.apache.soap classes. But everytime we are running into issues of IllegalAccessError or InvalidClassError or IncompatibleClassError based on different jars we are trying to include in our project. Attached is a simple BPEL project which tries to invoke a web service through JAVA embedding (no supporting jars need to be included explicitly). It erros with following trace:
    Class org/apache/soap/Envelope violates loader constraints
         Invalid class: org.apache.soap.Envelope
         Loader: soap:10.1.3
         Code-Source: /slot/ems1508/oracle/product/10.1.3.1/OracleAS_1/webservices/lib/soap.jar
         Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in /slot/ems1508/oracle/product/10.1.3.1/OracleAS_1/j2ee/home/oc4j.jar
         Dependent class: org.apache.soap.rpc.RPCMessage
         Loader: soap:10.1.3
         Code-Source: /slot/ems1508/oracle/product/10.1.3.1/OracleAS_1/webservices/lib/soap.jar
         Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in /slot/ems1508/oracle/product/10.1.3.1/OracleAS_1/j2ee/home/oc4j.jar
    Could you please help us out or provide any pointers. Any help would be highly appreciated

    Because you weren't told what to get, perhaps you already have it eh?
    What you want to read up about is JAX-WS, which is the webservice API bundled by default with your JDK (Java 6 and up). You'll find the wsimport tool in the bin directory of your JDK. I recommend you explore that directory and read up about all the executables you can find there, to be more prepared in the future. Know the tools you work with and all that. Most tools have a manual on this website:
    http://www.oracle.com/technetwork/java/javase/tech/index.html
    (under tools and utilities). Not wsimport, that is part of the jax-ws documentation. Better you look for jax-ws tutorials using Google, it will be quicker.

Maybe you are looking for