Using Web Dynpro authentication for a Web Service call

Hi all,
I want to develop a Web Dynpro that calls a Web Service running on the same Web AS (7.0). The Web Dynpro will be integrated in a Portal. The web service that has to be called is automatically generated when we create a guided procedure :
http://help.sap.com/saphelp_nw2004s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm
In my Web Dynpro, I imported the WSDL of this WS and created a model.
The first time I tried to call the WS in my Web Dynpro I got an authentication error :
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://<myHostName>:50100/GPRuntimeFacadeWS/GPProcessExposing?style=document&pid=CA544E9B629A11DB91480017A48D672A&pver=0.5"
So I hard-coded an HTTP authentication :
     model._setUser("myWASuser");
     model._setPassword("myPassword");
And the Web Service call now works.
Now the next step is that the WS call is made by the user that runs the Web Dynpro. So I found this documentation :
http://help.sap.com/saphelp_nw04/helpdata/en/59/e8e95d1eba48dfa86ae91ad8816f5d/frameset.htm
It would resolve my authentication problem, AND the transport issue : at the moment the Web Service URL is stored in the Logical Port of the WD model, and at transport time, a rebuild of the WD project will be needed.
So I applied what is said in the doc : from the point of view of the Web Service consumer, I just had to add :
    model._setHTTPDestinationName("STARTGP");
(where STARTGP is the name of the destination I created in the Visual Administrator with a "Logon Ticket" authentication.)
before the execute(), and I removed my hardcoded authentication.
Unfortunately, nothing changes... I still get a 401 authentication error.
Does anyone have an idea about this ? Or maybe a workaround ?
Thanks in advance for any suggestion.
Regards,
Julien

Hello Julien,
I have a scenario similar to yours. A client webdynpro application accessing a EJB methods exposed as web service. Those EJB's methods calls R3 RFC's. The client requirements' was to allow SSO through all the layers (Webdynpro -> EJB WS -> RFC). The Webdynpro and EJB's are deployed on the same WAS.
Solution:
1 - Create a RFC Destination on Visual Administration provide the R3 connection parameters and set the Authentication for "Current User (Logon Ticket)". Save your Destination;
2 - In your EJB Project open your Web Service Configuration, on the Security page, set:
    Authentication Mechanism: HTTP Authentication
    Basic (username/password)
    Use SAP Logon Ticket
3 - In your EJB, implement the following code to create JCO Client for the RFC invocations:
Object obj = ctx.lookup(DestinationService.JNDI_KEY);
    DestinationService dstService = (DestinationService) obj;
    RFCDestination dst = (RFCDestination) dstService.getDestination("RFC", "<YOUR_RFC_DESTINATION_NAME>");
    Properties jcoProperties = dst.getJCoProperties();
    JCO.Client jcoClient = JCO.createClient(jcoProperties);
4 - In your EAR Project, open your "application-j2ee-engine.xml" and add the References:
     "tc/sec/destinations/service" as Service
     "tc/sec/destinations/interface" as Interface.
5 - Create your EAR File and Deploy;
6 - Check if the web service now requires Authentication: go to http://<host>:<port>/index.html and click on Web Services Navigator. Test your Web Service. Your Web Service should requiere you to log in before execute the test;
7 - Go back to your Visual Administrator and create a HTTP Destination. Provide your WS URL (should be something like "http://<host>:<port>/<WS_NAME>/Config1?style=document"). Choose Authentication: Logon Ticket. Save your Destination;
8 - Go to your webdynpro project, import your WS Model. (If you have already created it, you have to delete it and import it again, refer to this blog on how to reimport WS Models: /people/bertram.ganz/blog/2005/10/10/how-to-reimport-web-service-models-in-web-dynpro-for-java  How To Reimport Web Service Models in Web Dynpro for Java );
9 - Open your model's Logical Ports node, go to the Security tab, and choose "Use SAP Logon Ticket";
10 - In your webdynpro code, before you call the ws invocation (should be something like that: <YOUR_NODE_DEFINITION>.modelObject().execute();), include the following line:
<YOUR_NODE_DEFINITION>.modelObject()._setHTTPDestinationName("<YOUR_HTTP_DESTINATION_NAME>");
11 - Save All Metadata and deploy your Webdynpro App. Test your results.
I hope it helps you, as the documentation on how to implement this scenario is scattered through the SDN and all the SAP help portal.
Best regards,
Paulo.

Similar Messages

  • ABAP source code to connect to third party systems using web service calls?

    Hi all,
              can any one provide an example ABAP source code to connect to third party systems using web service calls? The base system is CRM.

    Do you want to call a web service in a remote system, or do you want to provide a web service?
    If you want to call a web service you should create a proxy object via SE80. Open your development package, right click on the tree entry and choose: Create -> Enterprise Service / Web Service -> Proxy Object and provide the needed information (including the WSDL description file). You may then use the proxy object to call the web service (if the connection and everything else works right).
    See [http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/content.htm]

  • How can I use web service call for edit a report with SSRS in Java Struts2 web application

    Hello im new in SSRS technologie and I would like make web service call at my SSRS server. Is sombody can help me ?
    - What API should I import in my project ? I use Maven can I found this API on Maven repository ?
    - I would like have an sample of code which initialize the ReportingService, do the call and process result.
    We use the SQL Server ReportingService 2008 R2 and currently we made HTTP call like this : http://<ssr_server>/ReportServer/Pages/ReportViewer.aspx?%2fSSRS_OMB%2fMyReport&rs:Command=Render&MyParam=<value>
    Regards

    Hi ombinte,
    SQL Server Reporting Services provides access to the full functionality of the report server through the Report Server Web service. Because the Report Server Web service is an XML Web service which uses Simple Object Access Protocol (SOAP) over Hypertext Transfer
    Protocol (HTTP), any SOAP-aware application or development tool can communicate with the SSRS web service.
    There are three primary ways to develop Reporting Services applications based on the Web service, please see:
    Develop applications using Microsoft Visual Studio and the Microsoft .NET Framework SDK.
    Develop applications using the rs utility (RS.exe), the Reporting Services script environment.
    Develop applications using any SOAP-enabled set of development tools.
    For more information about Report Server Web Service, you can refer to the following document:
    http://technet.microsoft.com/en-us/library/ms152787.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Out of memory when coverting large files using Web service call

    I'm running into an out of memory error on the LiveCycle server when converting a 50 meg Word document with a Web service call.  I've already tried increasing the heap size, but I'm at the limit for the 32 bit JVM on windows.  I could upgrade to a 64 bit JVM, but it would be a pain and I'm trying to avoid it.  I've tried converted the 50 meg document using the LiveCycle admin and it works fine, the issue only occurs when using a web service call.  I have a test client and the memory spikes when it's generating the web service call taking over a gig of memory.  I assume it takes a similar amount of memory on the receiving end which is why LiveCycle is running out of memory.  Does any one have any insight on why passing over a 50 meg file requires so much memory?   Is there anyway around this?
    -Kelly

    Hi,
    You are correct that a complete 64bit environment would solve this. The problem is that you will get the out of memory error when the file is written to memory on the server. You can solve this by creating an interface which stores large files on the server harddisk instead, which allows you to convert as large files as LC can handle without any memory issue.

  • SAP Web Services Call with MQSeries

    Hi all,
      Our system is ECC 6.0 NW 7.0 SP15 with no PI and XI. Currently we can connect between SAP and Third party using web services call directly. However, our network & infrastructure team want to use MQseries as a message queue and broker.
      We can connect to MQ using IDOC for asynchronous method. But for synchronous method, how can we connect to MQ? Can SAP call web services to MQ  or pass the message to MQ synchronously? How to do that?
    Thanks,
    Chaiphon

    First of all, I do not think a Queueing system supports synchronous calls (Please correct me if I am wrong). The name it self says that, the system queues messages instead of immediately responding. May be if MQ seriese supports giving a transportation acknowledgement thus simulating the synchronous calls, it might support.
    As per my understanding, queuing systems only support async messages.
    VJ

  • How to get the list of values for a dynamic parameter using Web Services SDK?

    <p>I am struggling to get the list of values for a dynamic parameter of a report.</p><p>I am using Java Web Services SDK ... I tried to use PromptInfo.getLOV().getValues() method but it does not work.</p><p>First of all ... is this possible (to get the list of values for a dynamic param) using Web Services?</p><p>Second of all, if this is possible, how should I do it ... it seems it works fine when running the report from CMC. It asks for DB logon info and after that it provides a list of values.</p><p>Thx </p>

    <p>Your assumption is correct. We are trying to get the LOVs from the Crystal Report. I was not aware that this is not supported by Web Services SDK.</p><p>We used Web Services SDK to integrated the Crystal Reports in our web application. We implemented some basic actions for reports: schedule, view instances, run ad-hoc reports.</p><p>We encountered this problem when trying to run/schedule reports with dynamic parameters (a list of values from DB). We were unable to get the LOVs.</p><p>Please let me know if you can think of an alternative to look at.</p><p>Thanks a lot,</p><p>Catalin </p>

  • Report that uses web services as data source, prompts for database logon

    I have a crystal report that uses web services as a data source. When I deploy the report to Infoview it prompts me for a database username and password. Since I am not using a database it should not prompt me for these. I tried various options in the CMC->database settings for this report but it still prompts me for the database logon info or tells me that the database logon information is incorrect.
    The report work fine in the Crystal Reports Designer.
    Does anyone know how I can prevent this report from prompting me for the database logon info ?
    Thanks,

    What options have you tried in the CMC?
    Have you tried running the report in Crystal Reports installed directly on the Enterprise machine?

  • Query for job status using Web Services in BODI

    Hello,
    I am starting a Batch job in DI using Web Services, getting the following response from DI:
    Code:
    <soapenv:Envelope
        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <soapenv:Body>
            <BatchJobResponse>
                <pid>704</pid>       
                <cid>26</cid>       
            </BatchJobResponse>
        </soapenv:Body>
    </soapenv:Envelope>
    How can I know the status of the started job?
    How can I know if the job execution finished with success or not?
    I did not find in WSDL file any method to query for job or service status...
    Thank you in advance,
    Adrian Mitrica

    Did you ever get this figured out?  I am having exactly the same problem in code generated by VS, with the BAPIRET2 structure.
    Any help you could provide would be greatly appreciated.
    Thanks!
    Leighton Wingerd
    Adirondack Solutions, Inc.
    [email protected]

  • Error while using Web services for working with Informatica

    [Status] : Initializing...
    [Status] : Done
    [Status] : Calling StartWorkflow...
    From : DataIntegrationServiceSoapBindingStub
    Reason getting : null
    Jun 25, 2007 6:15:06 AM org.apache.axis.encoding.ser.BeanSerializer serialize
    SEVERE: Exception:
    java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:215)
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1426)
         at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:914)
         at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200)
         at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:519)
         at org.apache.axis.Message.getContentType(Message.java:475)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at samples.axis.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:744)
         at samples.axis.dataintegration.Sample1.main(Sample1.java:227)
    Jun 25, 2007 6:15:06 AM org.apache.axis.attachments.AttachmentsImpl getAttachmentCount
    WARNING: Exception:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275)
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1426)
         at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:914)
         at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200)
         at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:519)
         at org.apache.axis.Message.getContentType(Message.java:475)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at samples.axis.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:744)
         at samples.axis.dataintegration.Sample1.main(Sample1.java:227)
         {http://xml.apache.org/axis/}hostname:daa30144app003b
    java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:317)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:519)
         at org.apache.axis.Message.getContentType(Message.java:475)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at samples.axis.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:744)
         at samples.axis.dataintegration.Sample1.main(Sample1.java:227)
    Caused by: java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275)
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1426)
         at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:914)
         at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200)
         at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         ... 17 more
    Reason getting : null
    Jun 25, 2007 6:15:06 AM org.apache.axis.encoding.ser.BeanSerializer serialize
    SEVERE: Exception:
    java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:215)
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1426)
         at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:914)
         at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200)
         at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:229)
         at org.apache.axis.Message.getContentLength(Message.java:499)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:371)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at samples.axis.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:744)
         at samples.axis.dataintegration.Sample1.main(Sample1.java:227)
    Exception Occurred: java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275)
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1426)
         at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:914)
         at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200)
         at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:229)
         at org.apache.axis.Message.getContentLength(Message.java:499)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:371)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at samples.axis.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:744)
         at samples.axis.dataintegration.Sample1.main(Sample1.java:227)
         {http://xml.apache.org/axis/}hostname:daa30144app003b
    java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:317)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:229)
         at org.apache.axis.Message.getContentLength(Message.java:499)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:371)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
         at org.apache.axis.client.Call.invoke(Call.java:2748)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:2347)
         at org.apache.axis.client.Call.invoke(Call.java:1804)
         at samples.axis.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:744)
         at samples.axis.dataintegration.Sample1.main(Sample1.java:227)
    Caused by: java.io.IOException: java.io.IOException: Non nillable element 'reason' is null.
         at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275)
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1426)
         at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:914)
         at org.apache.axis.message.RPCParam.serialize(RPCParam.java:200)
         at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         ... 17 more

    Hi All,
    Now again i am getting below error when i am calling wokrflow to run using Web Services HUB.
    please can any one help out me in this.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.NullPointerException
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
         at org.apache.axis.message.SOAPEnvelope.addHeader(SOAPEnvelope.java:230)
         at org.apache.axis.client.Call.invoke(Call.java:2789)
         at org.apache.axis.client.Call.invoke(Call.java:2501)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:1835)
         at AI.Informatica.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:1101)
         at AI.Informatica.javasrc.GSS_Informatica.start_workflow(GSS_Informatica.java:745)
         at AI.Informatica.javasrc.GSS_Informatica.execute(GSS_Informatica.java:1384)
         at AI.Informatica.javasrc.GSS_Informatica.main(GSS_Informatica.java:382)
         {http://xml.apache.org/axis/}hostname:win2k3sami
    java.lang.NullPointerException
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:104)
         at org.apache.axis.client.Call.invoke(Call.java:2504)
         at org.apache.axis.client.Call.invoke(Call.java:2424)
         at org.apache.axis.client.Call.invoke(Call.java:1835)
         at AI.Informatica.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:1101)
         at AI.Informatica.javasrc.GSS_Informatica.start_workflow(GSS_Informatica.java:745)
         at AI.Informatica.javasrc.GSS_Informatica.execute(GSS_Informatica.java:1384)
         at AI.Informatica.javasrc.GSS_Informatica.main(GSS_Informatica.java:382)
    Caused by: java.lang.NullPointerException
         at org.apache.axis.message.SOAPEnvelope.addHeader(SOAPEnvelope.java:230)
         at org.apache.axis.client.Call.invoke(Call.java:2789)
         at org.apache.axis.client.Call.invoke(Call.java:2501)
         ... 6 more
    Thanks in advance.
    Mahesh.

  • Re: Error while using Web services for working with Informatica workflow

    Hi All,
    I am getting below error when i am calling Informatica wokrflow using Web Services HUB.
    able to establish connection with the informatica server.
    please can any one help out me in this.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.NullPointerException
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
    at org.apache.axis.message.SOAPEnvelope.addHeader(SOAPEnvelope.java:230)
    at org.apache.axis.client.Call.invoke(Call.java:2789)
    at org.apache.axis.client.Call.invoke(Call.java:2501)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:1835)
    at AI.Informatica.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:1101)
    at AI.Informatica.javasrc.GSS_Informatica.start_workflow(GSS_Informatica.java:745)
    at AI.Informatica.javasrc.GSS_Informatica.execute(GSS_Informatica.java:1384)
    at AI.Informatica.javasrc.GSS_Informatica.main(GSS_Informatica.java:382)
    {http://xml.apache.org/axis/}hostname:win2k3sami
    java.lang.NullPointerException
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:104)
    at org.apache.axis.client.Call.invoke(Call.java:2504)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:1835)
    at AI.Informatica.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:1101)
    at AI.Informatica.javasrc.GSS_Informatica.start_workflow(GSS_Informatica.java:745)
    at AI.Informatica.javasrc.GSS_Informatica.execute(GSS_Informatica.java:1384)
    at AI.Informatica.javasrc.GSS_Informatica.main(GSS_Informatica.java:382)
    Caused by: java.lang.NullPointerException
    at org.apache.axis.message.SOAPEnvelope.addHeader(SOAPEnvelope.java:230)
    at org.apache.axis.client.Call.invoke(Call.java:2789)
    at org.apache.axis.client.Call.invoke(Call.java:2501)
    ... 6 more
    Thanks in advance.
    Mahesh.

    Hi All,
    I am getting below error when i am calling Informatica wokrflow using Web Services HUB.
    able to establish connection with the informatica server.
    please can any one help out me in this.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.NullPointerException
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
    at org.apache.axis.message.SOAPEnvelope.addHeader(SOAPEnvelope.java:230)
    at org.apache.axis.client.Call.invoke(Call.java:2789)
    at org.apache.axis.client.Call.invoke(Call.java:2501)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:1835)
    at AI.Informatica.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:1101)
    at AI.Informatica.javasrc.GSS_Informatica.start_workflow(GSS_Informatica.java:745)
    at AI.Informatica.javasrc.GSS_Informatica.execute(GSS_Informatica.java:1384)
    at AI.Informatica.javasrc.GSS_Informatica.main(GSS_Informatica.java:382)
    {http://xml.apache.org/axis/}hostname:win2k3sami
    java.lang.NullPointerException
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:104)
    at org.apache.axis.client.Call.invoke(Call.java:2504)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:1835)
    at AI.Informatica.proxyclasses.DataIntegrationServiceSoapBindingStub.startWorkflow(DataIntegrationServiceSoapBindingStub.java:1101)
    at AI.Informatica.javasrc.GSS_Informatica.start_workflow(GSS_Informatica.java:745)
    at AI.Informatica.javasrc.GSS_Informatica.execute(GSS_Informatica.java:1384)
    at AI.Informatica.javasrc.GSS_Informatica.main(GSS_Informatica.java:382)
    Caused by: java.lang.NullPointerException
    at org.apache.axis.message.SOAPEnvelope.addHeader(SOAPEnvelope.java:230)
    at org.apache.axis.client.Call.invoke(Call.java:2789)
    at org.apache.axis.client.Call.invoke(Call.java:2501)
    ... 6 more
    Thanks in advance.
    Mahesh.

  • Pre-requisites required for using web-services

    Hello all!
    please tell what are the things required to use siebel on demand web-services.
    i have a user-id, password and other than it what all should i have.
    i am planning to use web-services to track my leads via my web-site.. can any one please specify what steps should i follow to make it happen..
    regards,
    Sreekanth

    If it will help you, I can send you a small VB.net example program that demonstrates web services. It will be easy to translate into C#. Click on my name to find my email address if you're interested.

  • R3 TO WebDynpro Using Web Services

    Hi guys,
       I am Integrating web dynpro appln. with R3 using web service . I have RFC imported in XI which has 'Gift' as  a table , when i create WSDL for this Message Interface this table and it's fields from RFC is not reflected in WSDL only one field named 'Value' is created.
      But if i import RFC in Web Dynpro this table structure is properly imported along with all of it's fields. 
    I am wordering whether i am following proper procedure to create WSDL for Message Intefaces Including RFC message types .
    Regards,
    Keith.

    Hi
    When you try to import an RFC from R3 to XI, WSDL is automatically genarated that is Message Interface. There might me loss of connection between R3 and XI. Check the RFC destination and try to import it again.
    Thanks
    Gowri K

  • How to retrieve the username/password of logged user so to use web services

    Hi Experts,
    we are using web services from a web dynpro application, the web services we use are CAF web services; actually we are "hardcoding" username and password so to be able to execute these web services, using this code before calling the web service:
    wdContext.currentRequest_ReporteDeRendicionDetallada_RElement().modelObject().setInvokerProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,"testuser");
      wdContext.currentRequest_ReporteDeRendicionDetallada_RElement().modelObject().setInvokerProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,"testpassword");
    but as this is not a very good practice, we want to replace the "testuser" with the logged user and, of course, retrieve the password and use it instead of "testpassword".
    How can we achieve this? I couldn´t find any tips on this.
    Best regards,
    Marco.

    Hello,
    thanks for your anwsers, although I´ve followed both links I couldn´t find the answer to my problem.
    I need to know how to retreive user and password from the UME of the portal so to be able to execute web services in the java stack, the UME is connected to a LDAP in our corporation.. so may be the passwords are not stored in the UME?
    If it is not possible to retrieve the passwords of the users , which is the best practice to deal with username/passwords to execute CAF webservices from web dynpro java? Hardcoding is not a very good practice..
    Best regards,
    Marco.

  • Using Web Service as Data source (Pluggable Data Source) in Oracle Reports

    Anyone using Webservice as a pluggable data source in oracle 10g reports.(Report builder version:10.1.2.0.2)? We need to be able to use web service as one of the data source to create reports.Tried the following and ran into issues:
    Imported the wspds.jar fle from oracle plugin exchage. When tried using it received the following error in oracle reports trace file.
    04/26 22:27:22 java.lang.NoSuchMethodError: oracle.xml.parser.schema.XSDBuilder.build([Loracle/xml/parser/v2/XMLDocument;Ljava/net/URL;)Ljava/lang/Object;
    By troubleshooting issue found out that xmlparserv2.jar in 10g is newer than xmlparserv2.jar in 9i. wspds.jar is using xmlparserv2.jar in 9i as it was developed and tested for 9i only. Believe there is no newer wspds.jar file developed specifically for 10g?
    Is there a better/standard solution to use webservice as data source in oracle 10g reports? Does later version of oracle reports supports webservice as a data source without any additional plugins? Any suggestion would be helpful.

    Please provide support for the above request.
    It appears that Oracle 10g reports doesn't support Web Service as pluggable data source. Is this option is available in Oracle 11g Reports or Oracle Discoverer Or OBIEE?

  • Performance impact of using Web Services?

    As BEA and other vendors continue to add Web Services support
    to their enterprise software, what is your plan for
    quantifying the performance impact and the functional
    correctness of using web services before going live with the
    final application?
    Empirix is hosting a free one hour web event discussion on
    web services testing and automated web services testing
    solutions on Thursday, January 17, 2-3pm Eastern time.
    To sign-up for this web event or learn about other web
    events being offering by Empirix this month, go to:
    http://webevents.empirix.com
    For your convenience, here is the complete abstract:
    The advent of web services has brought the promises of
    integrating multiple software applications from
    heterogeneous networks and for exchanging information
    from vendor-to-vendor or vendor-to-consumer in a
    standardized way.
    As web service technologies are deployed within and across
    organizations over the next several years, it will be
    critical that web services undergo performance testing.
    As with any enterprise software project, the adoption of
    proper test methodologies and use of testing tools will
    play a key part in the overall success or failure of
    projects utilizing web services. In a compressed
    software project schedule, an organization must
    quickly determine if its web services will operate
    successfully under a variety of load conditions. Like other
    web-based technologies, successful web services will need
    to respond quickly and correctly when implemented.
    During our presentation, we will discuss the testing
    challenges created by this emerging technology, along with
    the variety of testing solutions available. Automated
    web service testing will be discussed and demonstrated
    using FirstACT, the first web services performance testing solution available
    on the market. Using a sample web
    service, automatic test case creation, scalability testing,
    and results analysis will be explored.
    If you wish to download FirstACT prior to the web event, you can do so at:
    http://www.empirix.com/downloads/FirstACT

    As BEA and other vendors continue to add Web Services support
    to their enterprise software, what is your plan for
    quantifying the performance impact and the functional
    correctness of using web services before going live with the
    final application?
    Empirix is hosting a free one hour web event discussion on
    web services testing and automated web services testing
    solutions on Thursday, January 17, 2-3pm Eastern time.
    To sign-up for this web event or learn about other web
    events being offering by Empirix this month, go to:
    http://webevents.empirix.com
    For your convenience, here is the complete abstract:
    The advent of web services has brought the promises of
    integrating multiple software applications from
    heterogeneous networks and for exchanging information
    from vendor-to-vendor or vendor-to-consumer in a
    standardized way.
    As web service technologies are deployed within and across
    organizations over the next several years, it will be
    critical that web services undergo performance testing.
    As with any enterprise software project, the adoption of
    proper test methodologies and use of testing tools will
    play a key part in the overall success or failure of
    projects utilizing web services. In a compressed
    software project schedule, an organization must
    quickly determine if its web services will operate
    successfully under a variety of load conditions. Like other
    web-based technologies, successful web services will need
    to respond quickly and correctly when implemented.
    During our presentation, we will discuss the testing
    challenges created by this emerging technology, along with
    the variety of testing solutions available. Automated
    web service testing will be discussed and demonstrated
    using FirstACT, the first web services performance testing solution available
    on the market. Using a sample web
    service, automatic test case creation, scalability testing,
    and results analysis will be explored.
    If you wish to download FirstACT prior to the web event, you can do so at:
    http://www.empirix.com/downloads/FirstACT

Maybe you are looking for