Help to create a component model using Calculator Web Service :(

Hello All,
Im working on EP6 SP9 and have a Calculator Web Service.
I want to create a component which should contain following UI elements:
1. <i>InputField</i> - to enter 1st number
2. <i>InputField</i> - to enter 2nd number.
3. <i>TextView</i> - To show the result
The calculator web service consists of 4 basic methods like addition, subtraction, division & multiplication.
I want to know whether how can I provide seperate buttons to each of the above mentioned functions 'coz when I add the web service while creating a component using SAP Web Dynpro (<i>using SAP NEtweaver Developer Studio 2.0.9</i>) - Model Creation step, I get an option to select only one method (and that is add).
Its not working......
I am following the steps as mentioned in help pages on Web Dynpro, section "Web Dynpro & Web Services" and example on WebServiceEmail.
Please help.......
I have to show this in a presentation on coming Friday.
Awaiting Reply.
Thanks and Warm Regards,
Ritu R Hunjan
<i></i>

Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

Similar Messages

  • How to create a crystal report using secured web service as a datasource?

    Hi All Expert,
    I having some challenges on how to create a report using secured web service as a datasource in crystal report designer (CR11 R3).
    Secured Web Service including the certificate trusting, token authentication, header and/or body encryption. All web services running on https protocal.
    Could you please suggest me on the solution?
    Thank you and Best Regards,
    Cherr

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • How to create Java client to use WCC web services

    I'm trying to create a Java client to use web services available with Web Center Content.
    I generated stubs using "cxf-codegen-plugin" and I wrote following code (very trivial):
    DocInfo docInfo = null;
    *try {*
    docInfo = new DocInfo(new URL("http://vmxp43:16200/cs/idcplg?IdcService=GET_SOAP_WSDL_FILE&wsdlName=DocInfo&idcToken=1344065729220:B443F7C3DED844B594F32E0B3914E576&IsSoap=1"));
    *} catch (MalformedURLException e) {*
    e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
    DocInfoSoap docInfoSoap = docInfo.getDocInfoSoap();
    DocInfoByIDResult docInfoByIDResult =  docInfoSoap.docInfoByID(new Integer(2), null);
    At the moment I'm obtaining following error:
    Exception in thread "main" javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://vmxp43:16200/cs/idcplg?IdcService=GET_SOAP_WSDL_FILE&wsdlName=DocInfo&idcToken=1344065729220:B443F7C3DED844B594F32E0B3914E576&IsSoap=1. It failed with:
    *     Invalid WSDL http://vmxp43:16200/cs/idcplg?IdcService=GET_SOAP_WSDL_FILE&wsdlName=DocInfo&idcToken=1344065729220:B443F7C3DED844B594F32E0B3914E576&IsSoap=1, expected {http://schemas.xmlsoap.org/wsdl/}definitions found html at (lineLine number = 3*
    Column number = 30
    System Id = http://vmxp43:16200/cs/idcplg?IdcService=GET_SOAP_WSDL_FILE&wsdlName=DocInfo&idcToken=1344065729220:B443F7C3DED844B594F32E0B3914E576&IsSoap=1
    Public Id = null
    Location Uri= http://vmxp43:16200/cs/idcplg?IdcService=GET_SOAP_WSDL_FILE&wsdlName=DocInfo&idcToken=1344065729220:B443F7C3DED844B594F32E0B3914E576&IsSoap=1
    CharacterOffset = 133
    *     at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:151)*
    *     at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:127)*
    *     at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:254)*
    *     at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:217)*
    *     at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:165)*
    *     at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:93)*
    *     at javax.xml.ws.Service.<init>(Service.java:56)*
    *     at com.stellent.docinfo.DocInfo.<init>(DocInfo.java:39)*
    *     at eu.europa.efsa.virtual.library.services.client.TestDocInfo.main(TestDocInfo.java:23)*
    *Caused by: javax.xml.stream.XMLStreamException: Invalid WSDL http://vmxp43:16200/cs/idcplg?IdcService=GET_SOAP_WSDL_FILE&wsdlName=DocInfo&idcToken=1344065729220:B443F7C3DED844B594F32E0B3914E576&IsSoap=1, expected {http://schemas.xmlsoap.org/wsdl/}definitions found html at (lineLine number = 3*
    Column number = 30
    System Id = http://vmxp43:16200/cs/idcplg?IdcService=GET_SOAP_WSDL_FILE&wsdlName=DocInfo&idcToken=1344065729220:B443F7C3DED844B594F32E0B3914E576&IsSoap=1
    Public Id = null
    Location Uri= http://vmxp43:16200/cs/idcplg?IdcService=GET_SOAP_WSDL_FILE&wsdlName=DocInfo&idcToken=1344065729220:B443F7C3DED844B594F32E0B3914E576&IsSoap=1
    CharacterOffset = 133
    *     at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:120)*
    *     ... 7 more*
    Please, any comment will be appreciated.

    Now I'm trying following code.
    DocInfo docInfo = new DocInfo();
    DocInfoSoap docInfoSoap = docInfo.getDocInfoSoap();
    DocInfoByIDResult docInfoByIDResult =  docInfoSoap.docInfoByID(new Integer(2), null);
    The error I obtain is:
    Exception in thread "main" com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 401: Unauthorized
         at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:196)
         at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:168)
         at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:83)
         at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)
         at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:587)
         at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:546)
         at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:531)
         at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:428)
         at com.sun.xml.internal.ws.client.Stub.process(Stub.java:211)
         at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:124)
         at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:98)
         at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
         at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
         at $Proxy28.docInfoByID(Unknown Source)
         at eu.europa.efsa.virtual.library.services.client.TestDocInfo.main(TestDocInfo.java:20)
    Is there a way to pass right username and password?
    How can I understand which the user actually used?

  • Invoking a web service not created using oracle web service lib

    Hi All,
    I have a need to invoke my web service from oracle sql command. My web service not created using oracle web service library, but it is created using axis c++ libraries. Is it possible to do so,
    Thanks in advance,
    Regards,
    Monica

    In order to call out from the database process, is SQL (or PL/SQL) you need to generate some client code, that understand the details about the specific of the service you want to invoke and can produce the correct SOAP request. Once this proxy is uploaded in the Database, you can use it.
    There is a set of Database Web services samples that should help you get started. You can also take a look at the developer's guide - see Developing a Web Service Client in the Database.
    Hope it answers your question.
    --eric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem executing a web service using adaptive web service model

    Hi,<br/>
    I'm trying to execute a web servide using the adaptive web service model. The web service is generated by a java web application using apache axis 1.2<br/>
    I can import the model without problems, but when I try to run the application (containing a form for parameters, a button to execute the web service and a table to show results) it gives the following exception: <br/><br/>
    <code>
    java.lang.IllegalArgumentException: Target role name 'GetProductMaster' not defined for model class 'Request_GetProductMaster'
         at com.sap.tc.webdynpro.model.webservice.base.model.BaseGenericModelClass.retrieveTargetRoleInfo(BaseGenericModelClass.java:93)
         at com.sap.tc.webdynpro.model.webservice.base.model.BaseGenericModelClass.getRelatedModelObject(BaseGenericModelClass.java:388)
         at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass.getRelatedModelObject(WSTypedModelClass.java:66)
         at com.baufest.goe.wstest.model.Request_GetProductMaster.getGetProductMaster(Request_GetProductMaster.java:46)
         at com.baufest.goe.wstest.app.wdp.IPublicTestWS2App$IGetProductMasterNode.doSupplyElements(IPublicTestWS2App.java:529)
         at com.sap.tc.webdynpro.progmodel.context.Node.supplyElements(Node.java:406)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementList(Node.java:345)
         at com.sap.tc.webdynpro.progmodel.context.Node.createMappedElementList(Node.java:498)
         at com.sap.tc.webdynpro.progmodel.context.Node.supplyElements(Node.java:393)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementList(Node.java:345)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElements(Node.java:333)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:615)
         at com.sap.tc.webdynpro.progmodel.context.Paths.followPath(Paths.java:897)
         at com.sap.tc.webdynpro.progmodel.context.Paths.followPath(Paths.java:852)
         at com.sap.tc.webdynpro.progmodel.context.Paths.isValid(Paths.java:612)
         at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField._isValidBindingOfPrimaryProperty(AbstractInputField.java:1167)
         at com.sap.tc.webdynpro.progmodel.view.UIElement.getEnabled(UIElement.java:364)
         at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.Label._isEnabled(Label.java:115)
         at com.sap.tc.webdynpro.progmodel.view.UIElement.getEnabled(UIElement.java:364)
         at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.LabelAdapter.getEnabled(LabelAdapter.java:213)
         at com.sap.tc.ur.renderer.ie6.LabelRenderer.render(LabelRenderer.java:84)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.renderMatrixLayoutCellFragment(MatrixLayoutRenderer.java:790)
         at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.renderMatrixLayoutRowFragment(MatrixLayoutRenderer.java:376)
         at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.renderMatrixLayoutFragment(MatrixLayoutRenderer.java:326)
         at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.render(MatrixLayoutRenderer.java:79)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:619)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:74)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:254)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:210)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:49)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:619)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:74)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.UiWindowRenderer.render(UiWindowRenderer.java:52)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendHtml(HtmlClient.java:1042)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.fillDynamicTemplateContext(HtmlClient.java:455)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:1229)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:252)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRetrieveData(WindowPhaseModel.java:595)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:156)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    </code>
    <br/><br/>
    The model is imported without errors, and gives the following tree:<br/><br/>
    <ul>
    <li>ProdMast</li>
    <ul>
    <li>                                          Model Classes</li>
    <ul>
    <li>                                                   GetProductMaster</li>
    <li>                                                   GetProductMasterResponse</li>
    <ul><li>                                                             GetProductMasterReturn</li></ul>
    <li>                                                   Product</li>
    <li>                                                   Request_GetProductMaster</li>
    <ul><li>                                                             GetProductMaster</li>
    <li>                                                             Response</li></ul>
    <li>                                                   Response_GetProductMaster</li>
    <ul><li>                                                             Fault</li>
    <li>                                                             GetProductMasterResponse</li></ul>
    <li>                                                   WebServiceException</li>
    </ul></ul></ul>
    <br/><br/>
    If you know what could be causing this problem or a way to make it work please let me know<br/>
    Thanks,<br/>
    Guillermo

    The WSDL that I'm using (generated by Apache Axis) is the following:<br/><br/>
    <code>
    &lt;?xml version="1.0" encoding="UTF-8"?&gt;<br/>&lt;wsdl:definitions targetNamespace="http://XXX.XXX.XXX.XXX:9876/axis/services/WebMasterData" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://XXX.XXX.XXX.XXX:9876/axis/services/WebMasterData" xmlns:intf="http://XXX.XXX.XXX.XXX:9876/axis/services/WebMasterData" xmlns:tns1="http://ws.web.test.company.com" xmlns:tns2="urn:Product" xmlns:tns3="urn:WebServiceException" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;<br/>&lt;!WSDL created by Apache Axis version: 1.2<br/>Built on May 03, 2005 (02:20:24 EDT)&gt;<br/> &lt;wsdl:types&gt;<br/>  &lt;schema elementFormDefault="qualified" targetNamespace="http://ws.web.test.company.com" xmlns="http://www.w3.org/2001/XMLSchema"&gt;<br/>   &lt;import namespace="urn:WebServiceException"/&gt;<br/>   &lt;import namespace="urn:Product"/&gt;<br/>   &lt;element name="getProductMaster"&gt;<br/>    &lt;complexType&gt;<br/>     &lt;sequence&gt;<br/>      &lt;element name="sessionId" type="xsd:string"/&gt;<br/>      &lt;element name="language" type="xsd:string"/&gt;<br/>     &lt;/sequence&gt;<br/>    &lt;/complexType&gt;>
       &lt;/element&gt;<br/>   &lt;element name="getProductMasterResponse"&gt;<br/>    &lt;complexType&gt;<br/>     &lt;sequence&gt;<br/>      &lt;element maxOccurs="unbounded" name="getProductMasterReturn" type="tns2:Product"/&gt;<br/>     &lt;/sequence&gt;<br/>    &lt;/complexType&gt;<br/>   &lt;/element&gt;<br/>  &lt;/schema&gt;<br/>  &lt;schema elementFormDefault="qualified" targetNamespace="urn:Product" xmlns="http://www.w3.org/2001/XMLSchema"&gt;<br/>   &lt;import namespace="urn:WebServiceException"/&gt;<br/>   &lt;complexType name="Product"&gt;<br/>    &lt;sequence&gt;<br/>     &lt;element name="num_conv_stat_cs" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="cat_desc" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="prod_typ" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="dst_chan" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="old_prod_nbr" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="slsorg" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="id" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="div" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="nwt_val" nillable="true" type="xsd:decimal"/&gt;<br/>     &lt;element name="sls_uom" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="den_conv_alt_uom" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="nwt_un" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="num_conv_layer" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="prod_grp" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="brn_desc" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="hilgt" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="num_conv_pl" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="den_conv_stat_cs" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="den_conv_layer" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="extl_prod_nbr" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="net_vol_un" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="num_conv_alt_uom" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="den_conv_pl" nillable="true" type="xsd:int"/&gt;<br/>     &lt;element name="bs_uom" nillable="true" type="xsd:string"/&gt;<br/>     &lt;element name="net_vol_val" nillable="true" type="xsd:decimal"/&gt;<br/>     &lt;element name="prod_desc" nillable="true" type="xsd:string"/&gt;<br/>    &lt;/sequence&gt;<br/>   &lt;/complexType&gt;<br/>  &lt;/schema&gt;<br/>  &lt;schema elementFormDefault="qualified" targetNamespace="urn:WebServiceException" xmlns="http://www.w3.org/2001/XMLSchema"&gt;<br/>   &lt;import namespace="urn:Product"/&gt;<br/>   &lt;complexType name="WebServiceException"&gt;<br/>    &lt;sequence/&gt;<br/>   &lt;/complexType&gt;<br/>  &lt;/schema&gt;<br/>  &lt;schema elementFormDefault="qualified" targetNamespace="http://XXX.XXX.XXX.XXX:9876/axis/services/WebMasterData" xmlns="http://www.w3.org/2001/XMLSchema"&gt;<br/>   &lt;import namespace="urn:WebServiceException"/&gt;<br/>   &lt;import namespace="urn:Product"/&gt;<br/>   &lt;element name="fault" type="tns3:WebServiceException"/&gt;<br/>  &lt;/schema&gt;<br/> &lt;/wsdl:types&gt;<br/>   &lt;wsdl:message name="WebServiceException"&gt;<br/>      &lt;wsdl:part element="impl:fault" name="fault"/&gt;<br/>   &lt;/wsdl:message&gt;<br/>   &lt;wsdl:message name="getProductMasterRequest"&gt;<br/>      &lt;wsdl:part element="tns1:getProductMaster" name="parameters"/&gt;<br/>   &lt;/wsdl:message&gt;<br/>   &lt;wsdl:message name="getProductMasterResponse"&gt;<br/>      &lt;wsdl:part element="tns1:getProductMasterResponse" name="parameters"/&gt;<br/>   &lt;/wsdl:message&gt;<br/>   &lt;wsdl:portType name="WebMasterData"&gt;<br/>      &lt;wsdl:operation name="getProductMaster"&gt;<br/>         &lt;wsdl:input message="impl:getProductMasterRequest" name="getProductMasterRequest"/&gt;<br/>         &lt;wsdl:output message="impl:getProductMasterResponse" name="getProductMasterResponse"/&gt;<br/>         &lt;wsdl:fault message="impl:WebServiceException" name="WebServiceException"/&gt;<br/>      &lt;/wsdl:operation&gt;<br/>   &lt;/wsdl:portType&gt;<br/>   &lt;wsdl:binding name="WebMasterDataSoapBinding" type="impl:WebMasterData"&gt;<br/>      &lt;wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/&gt;<br/>      &lt;wsdl:operation name="getProductMaster"&gt;<br/>         &lt;wsdlsoap:operation soapAction=""/&gt;<br/>         &lt;wsdl:input name="getProductMasterRequest"&gt;<br/>            &lt;wsdlsoap:body use="literal"/&gt;<br/>         &lt;/wsdl:input&gt;<br/>         &lt;wsdl:output name="getProductMasterResponse"&gt;<br/>            &lt;wsdlsoap:body use="literal"/&gt;<br/>         &lt;/wsdl:output&gt;<br/>         &lt;wsdl:fault name="WebServiceException"&gt;<br/>            &lt;wsdlsoap:fault name="WebServiceException" use="literal"/&gt;<br/>         &lt;/wsdl:fault&gt;<br/>      &lt;/wsdl:operation&gt;<br/>   &lt;/wsdl:binding&gt;<br/>   &lt;wsdl:service name="WebMasterDataService"&gt;<br/>      &lt;wsdl:port binding="impl:WebMasterDataSoapBinding" name="WebMasterData"&gt;<br/>         &lt;wsdlsoap:address location="http://XXX.XXX.XXX.XXX:9876/axis/services/WebMasterData"/&gt;<br/>      &lt;/wsdl:port&gt;<br/>   &lt;/wsdl:service&gt;<br/>&lt;/wsdl:definitions&gt;<br/>
    </code>

  • Return Data from Oracle using a web service in AXIS - please help

    Hi Forum,
    I am very new to web services and Java tech. and recently I have been assigned to work with technology and I am struggling to learn it and need your help and assistance.
    I am trying to return some data from a an oracle database but I have to do that using a web service and I am using AXIS. For example below is a simple program that returns two columns for the demo EMP table
    import java.sql.*;
    class emp {
    public static void main(String args[])
    throws ClassNotFoundException, SQLException {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    // or you can use:
    // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott", "tiger");
    Statement stmt = conn.createStatement( );
    ResultSet rset = stmt.executeQuery("select * from emp");
    while(rset.next( )) {
    System.out.println(rset.getString(1));
    System.out.println(rset.getString(2));
    rset.close( );
    stmt.close( );
    conn.close( );
    } but I do not know how to convert this into a web service.
    Please help.
    Thanks in advance.
    Regards,
    Ravi

    The following code returns Document. I will be calling the below function to convert my Resultset to document. In my JWS file i simply call a method with parameters. can a web service method in .jws file return Document type. It shows error will doing so. Please help me.
    public static Document toDocument(ResultSet rs) throws ParserConfigurationException, SQLException
              Document res_doc = null;
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = factory.newDocumentBuilder();
              Document doc = builder.newDocument();
              Element results = doc.createElement("Results");
              doc.appendChild(results);
              ResultSetMetaData rsmd = rs.getMetaData();
              int colCount = rsmd.getColumnCount();
              while (rs.next())
              Element row = doc.createElement("Row");
              results.appendChild(row);
              for (int i = 1; i <= colCount; i++)
              String columnName = rsmd.getColumnName(i);
              Object value = rs.getObject(i);
              Element node = doc.createElement(columnName);
              node.appendChild(doc.createTextNode(value.toString()));
              row.appendChild(node);
              return res_doc;
         }

  • Cannot pass data from Web Dynpro to XI using a Web Service

    Hi All,
    We have been facing some issues when we try to pass on a SOAP / XML message via a WSDL from a WebDynpro App to XI - No data is reaching XI interface. The payload data details for the inbound message in XI is empty. When testing the WSDL separately using XML spy the data passes to the XI successfully.
    The problem only occurs when we pass on the data from the WebDynpro component.
    We are also passing additional information _user and _password to ensure authenticated access.
    Steps that we completed so far:
    1. Created a WSDL which we can use to communicate to XI interface.
    2. Imported WSDL using webdynpro Web Service Model import
    functionality.
    3. Bound WSDL with webdynpro components.
    4. Pass on data through WSDL contexts.
    5. Execute WSDL model.
    Any help would be much appreciated.
    Thanks,
    RR

    Hi,
    please check document:
    Almost Everything about Transaction Launcher u2013 Part
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3059fb20-987f-2e10-ef82-d147b9b5e8b4
    Denis

  • Using eclipse Web services to retrieve and update data to Oracle DB

    Hi,
    Can I have a sample about to use eclipse to retrieve/update data from Oracle DB by using axis web services?
    thank you

    Hi,
    If you have a sheet in Excel with data from a SharePoint Online list you can switch to the PowerPivot ribbon and ask to add it to the model. This will allow you to reference this table when you create a PowerView report.
    This workbook, with the Odata feed can then be refreshed via the scheduled refresh feature of Power BI Site.
    Insert the data using the Odata feed
    The Odata URL will be something like:
    https://MyCompany.sharepoint.com/MySite/MySubSite/_vti_bin/listdata.svc/MyList
    If you are not sure what is the list name, you can drop just browse to
    https://MyCompany.sharepoint.com/MySite/MySubSite/_vti_bin/listdata.svc and this will provide a list of all the lists in that site/sub-site.
    Once you have those in the model and you setup scheduled refresh, it will refresh the lists directly from SPO (using the owner identity)
    Hope this helps.
    Guy
    GALROY

  • Error connecting to Salesforce using a Web Service Adapter

    Hi,
    I'm working on a connection from Data Services 4.2 to Salesforce using a Web Service Adapter.
    I've setup up the adapter (including JVM parameters to use a HTTP proxy), created a Datastore based on the adapter and built a batch job that calls the login operation and initiates a sessions towards Salesforce.
    When I execute the batch job I get an error message that says:
    Error calling function <login>: <Web Services client unable to create a SOAP request to send to server. Error: The current node has been removed using a method other than Iterator#remove()>.
    The trace log for the Web Service Adapter contains the same error message and has some additional info.
    4/16/15 1:17:25 PM Thread[Thread-10,5,main] Handle request starting for operation: login
    4/16/15 1:17:26 PM Thread[Thread-10,5,main] Entering addDocumentMessage()...
    4/16/15 1:17:26 PM Thread[Thread-10,5,main] Entering addHeadersToEnvelope()...
    4/16/15 1:17:26 PM Thread[Thread-10,5,main] Web Services client unable to create a SOAP request to send to server. Error: The current node has been removed using a method other than Iterator#remove()
    4/16/15 1:17:26 PM Thread[Thread-10,5,main] Remove message listener for message type [adapter.WSAdapter.__STREAM_FUNCTION.1].
    4/16/15 1:17:26 PM Thread[Thread-10,5,main] Stopping web service function call operation
    4/16/15 1:17:26 PM Thread[Thread-10,5,main] Receive message: BrokerMessage(
    _e.ErrorsTo=com.acta.adapter..client.dataAndMetadata_8
    _e.Timestamp=Thu Apr 16 13:17:26 2015
    _e.SourceTimeoutLength=90000
    _e.MessageID=16
    _e.Destination=com.acta.adapter.webservice.adapter.WebServiceAdapter.data_2
    _e.MessageType=MSG_ADAPTER_END_OPER
    _e.ReplyTo=com.acta.adapter..client.dataAndMetadata_8
    _e.CorrelationID=15_com.acta.adapter..client.dataAndMetadata_8
    _a.MSGFIELD_ADAPTER_SESSION_ID=2
    _e.Source=com.acta.adapter..client.dataAndMetadata_8
    _a.MSGFIELD_ADAPTER_OPER_ID=1)
    I've searched for any additional tracing/logging on the server but I haven't found anything relevant. Can anyone help me determining what the cause of this error is so I can solve this?
    Thanks,
    - Ian

    Hi,
    I'm working on a connection from Data Services 4.2 to Salesforce using a Web Service Adapter.
    I've setup up the adapter (including JVM parameters to use a HTTP proxy), created a Datastore based on the adapter and built a batch job that calls the login operation and initiates a sessions towards Salesforce.
    When I execute the batch job I get an error message that says:
    Error calling function <login>: <Web Services client unable to create a SOAP request to send to server. Error: The current node has been removed using a method other than Iterator#remove()>.
    The trace log for the Web Service Adapter contains the same error message and has some additional info.
    4/16/15 1:17:25 PM Thread[Thread-10,5,main] Handle request starting for operation: login
    4/16/15 1:17:26 PM Thread[Thread-10,5,main] Entering addDocumentMessage()...
    4/16/15 1:17:26 PM Thread[Thread-10,5,main] Entering addHeadersToEnvelope()...
    4/16/15 1:17:26 PM Thread[Thread-10,5,main] Web Services client unable to create a SOAP request to send to server. Error: The current node has been removed using a method other than Iterator#remove()
    4/16/15 1:17:26 PM Thread[Thread-10,5,main] Remove message listener for message type [adapter.WSAdapter.__STREAM_FUNCTION.1].
    4/16/15 1:17:26 PM Thread[Thread-10,5,main] Stopping web service function call operation
    4/16/15 1:17:26 PM Thread[Thread-10,5,main] Receive message: BrokerMessage(
    _e.ErrorsTo=com.acta.adapter..client.dataAndMetadata_8
    _e.Timestamp=Thu Apr 16 13:17:26 2015
    _e.SourceTimeoutLength=90000
    _e.MessageID=16
    _e.Destination=com.acta.adapter.webservice.adapter.WebServiceAdapter.data_2
    _e.MessageType=MSG_ADAPTER_END_OPER
    _e.ReplyTo=com.acta.adapter..client.dataAndMetadata_8
    _e.CorrelationID=15_com.acta.adapter..client.dataAndMetadata_8
    _a.MSGFIELD_ADAPTER_SESSION_ID=2
    _e.Source=com.acta.adapter..client.dataAndMetadata_8
    _a.MSGFIELD_ADAPTER_OPER_ID=1)
    I've searched for any additional tracing/logging on the server but I haven't found anything relevant. Can anyone help me determining what the cause of this error is so I can solve this?
    Thanks,
    - Ian

  • How do I create a Username Validator for a web service.

    I'm trying to figure out how to create a Username validator. I've followed the WSIT documentation and created their calculator service. The service works when I leave security turned off, so I know I'm good up to this point. I right click on the Web Service in Netbeans, and select Edit Web Services Attributes which pops up the Quality of Service window. I click Secure Service to enable security and select Message Authentication over SSL. I then deselect Use Development Defaults. The Validators button never enables; it stays disabled and greyed out. I've trying picking all different kinds of Security Mechanisms and changing their configuration but I can never get the Validators button to enable. I've also noticed a problem where I select Message Authentication over SSL and deselect Use Development Defaults and then click OK to close the Quality Of Service window. If I then go back to the Quality Of Service window Use Development Defaults is turned back on. The only way I have found around this is to keep turning it off, closing the window and then opening the window again. I sometimes have to screw around with the configuration on the Security Mechanism to be able to keep the Use Development Defaults checkbox unchecked.
    My question is if anyone else has had this problem? How do you go about creating a Username Validator on a Web Service? I know WSIT is pretty new and the IDE wizards seem very buggy. I wouldn't mind creating the Validator by hand and mapping it in, I just can not figure out how to do it.

    I read the examples you referred to. I currently use this method in my non WSIT code, I was trying to figure out how you do the same thing with WSIT (or the equivalent). I've continued playing around with the code, and I found a few settings changes to get my JAX-WS 2.1 SOAP Server to talk with my .Net 3.5 SOAP client. I'm going to stick with the client I have now until I feel it's necessary to switch to WSIT.

  • Using ABAP Web Service tor convert IDoc to XML and transfer to SOAP Server

    Hi all,
    I have a problem to use ABAP Web Service to convert IDoc's to XML and then send them to a SOAP Server.
    Currently we have the following landscape:
    SAP->XI->Archive
    The sap-system (ECC6.0) sends an IDoc to the Exchange Infrastructe. The XI maps the IDoc and converts it to the required XML format, used by the archive. Afterwards, the XML documents are sended to the SOAP Server.
    So I'm trying to replace the Exchange Infrastructure with ABAP Web Service.
    I've read a lot of posts and documents reagarding ABAP Web Serivce, converting IDoc's to XML, RFC and so on, but I'm not able to do the replacement.
    I don't know how to start and which steps are required.
    The required roles and authorizations at the sap-system and the service for soamanager and the Web Service Viewer are available.
    First I thought to create the RFC and partner profiles and then the report to convert IDoc to XML as a BAPI. With this BAPI I supposed to create and define a Web Service. The problem is, I don't know how to trigger the report if the Idoc should be send to the archive.
    Hopefully, someone has an idea or a how-to for me.
    Thanks in advance.
    Regards,
    Christoph
    Edited by: BigTicket on May 12, 2010 9:36 AM

    Hi BigTicket.
    A suggestion to trigger the BAPI / WebService at the IDoc receiving is to use a user exit or enhanced inside the idoc function module. When the idoc arrived to the idoc port the system start the related function module and then your user exit/enhanced in which you invoke your BAPI.
    I hope this help.
    Ciao.
    Nicola

  • How to supervise (and fix) using BPEL web services in AIA?

    We have unbelievably many problems with using AIA & web services concerned. Is there any way of online monitoring using the web services, checking data/parameters provided and fixing what needed - before a disasters comes? The supervising layer should work WITHOUT the same environment (rather on the system level) in order to be on a qualitative much higher reliability level. I would gratefully appreciate any experience to help us from heavy problems...

    Hello,
    With one button you want to perform 3(Create, Update and Delete) operation
    To create:
    First check whether the data exist with full combination of Name,Desc and City.
    If not exist you can execute the create function.
    If exist, get confirmation to delete the item by pop up. Using item ID you can perform Delete operation
    To Update:
    How you want to update the item, by keeping unique value or combination of columns?
    based on that you can perform the update operation.
    Whenever you see a reply and if you think is helpful, click "Alternate TextVote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "Alternate TextMark As Answer

  • How to use RESTful Web Services provided from BO Enterprise

    Hi Experts,
    i am trying to use the Web Service "BIPLATFORM" provided by BusinessObjects Enterprise. As I have trouble reading the WSDL i tried to use the REST interface.
    Unfortunatally I cannot find any Docu about that in the internet.
    Does anybody have experience in using the BIPLATFORM web service?
    Thank you in advance

    Thank you very much for your instant answer and help!
    I got it now: "no rest in biplatform service"
    What made me think REST is possible was only the following entry in ...\webapps\dswsbobje\WEB-INF\conf\axis2.xml
    "<!-- Our HTTP endpoints can handle both REST and SOAP. Following parameters can be used to distinguiush those endpoints
      -->
    - <!-- In case of a servlet, if you change this you have to manually change the settings of your servlet container to map this
      -->
    - <!-- context path to proper Axis2 servlets
      -->
    - <!-- <parameter name="servicePath">services</parameter>
      -->
    - <!-- <parameter name="restPath">rest</parameter>
      -->
    - <!--  Following parameter will completely disable REST handling in Axis2
      -->
      <parameter name="disableREST" locked="true">false</parameter>
    - <!-- POJO deployer , this will alow users to drop .class file and make that into a service
      -->
    Anyway I was only hoping to get REST work as the WSDL provided by BusinessObjects Enterprise is not valid to be parsed by SAP Netweaver ABAP SOAP Runtime...
    I regret but i have to add: The fact that the web service is only meant to work with certain consumers shows that the people responsible have little to no understanding what the idea of SOAP, SOA and WSDL really is. On the one hand SAP was always pushing their ESOA idea but on the other hand we got this strange limitations like "only for these clients..."
    This is exactly the opposite of the SOAP-idea:
    "The framework has been designed to be independent of any particular programming model and other implementation specific semantics." - http://www.w3.org/TR/2007/REC-soap12-part1-20070427/

  • Crystal Report using a Web Service as a data source?

    I am trying to figure out how to use a Web Service as a data source in Crystal Reports. When I use the report wizard, I do not see an option to select Web Service as a new connection. We are currently using Crystal Reports 2008 v12.1.0.892. Could it be that my version does not support this? Is there an update that contains this feature? Please help.

    Thanks for your response. Unfortunately I do not see a radio button for Web Services. I've read that it should be there too. Could it be a missing plug-in or patch?
    Here are screen shots of what I see when trying to connect to an XML. Any thoughts?
    [http://s26.photobucket.com/albums/c120/hpolit/?action=view&current=wizard1.jpg]
    [http://s26.photobucket.com/albums/c120/hpolit/?action=view&current=wizard2.jpg]

  • Using a Web Service as a data provider for a Crystal Report

    <p>I&#39;m trying to write a Crystal Reports XI report that uses a Web Service as the data provider.  I have a Web Service written in ColdFusion that looks like this.<br /><br /><cfcomponent displayName="FindEmployee" ><br />   <cffunction name="FindEmployeeSort" access="remote"          <br />               returnType="xml" output="false"><br />      <cfdump var=form><br />      <cfset myXML = ""><br />       <!--- FindEmployeeSort body ---><br />       <cfquery name="EmployeeQuery" datasource="Production"><br />           Select * from employee<br />          <cfif isdefined(&#39;form.lastname&#39;)><br />             WHERE lastname LIKE &#39;%#form.lastname#%&#39; <br />          </cfif><br />           Order by lastname asc <br />        </cfquery><br />     <cfreturn EmployeeQuery>  <br />   </cffunction><br /></cfcomponent><br /><br />I can get the web service to work from a ColdFusion page (either locally or on a remote server).</p><p>When I try to create the CR data source, I get the following error:</p><p>Crystal Reports<br />! Logon Failed.<br />Details: Cannot find correspondign table information in the XML file</p><p>The steps I took were:<br />* Choose XML from the "Avalable Data Sources"<br />* Choose "Use Web Service Data Source"<br />* Choose "Use HTTP(S) WSDL" with a url of <a href="http://host/directory/FindEmployee.cfc?wsdl">http://host/directory/FindEmployee.cfc?wsdl</a><br />* Leave the "HTTP(S) Web Service User ID:" and "HTTP(S) Web Service Password:" parameters blank<br />* Accept the defaults for Services, Ports, and Methods.  They are respectively FindEmployee, FindEmployee.cfc and FindEmployeeSort.<br />* Then get the error</p><p>The most likely candidate to me is the user id and password, but I have no idea what to use.  I didn&#39;t have to set any login information up in the ColdFusion pages that I used to test the Web Service.</p><p>Any ideas where to go from here?</p><p>Thanks,</p><p>Brian</p>

    Please re-post if this is still an issue to the Java Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

Maybe you are looking for

  • Unable to apply 9.3.0 patch to .msi

    I can not apply the 9.3.0 msp patch to the 9.2.0 msi. The install fails with this error message: http://i210.photobucket.com/albums/bb65/djfrost143/work/Capture-1.jpg Error 1334 This happened when I was applying the 9.1.x patches also and I found a w

  • File transfer Crashes 10.8 Server

    I’m reaching out for someone’s more experienced analysis of an ongoing issue we’re having with a client’s server. Approximately once or twice a month for the past four months they’ve experienced server connections dropping for all connected users in

  • [SOLVED!]I'd like to add a dedicated Gnome-Shell session entry to GDM.

    Edit: Well, thanks for all your help guys, I really did appreciate it all. However I've remembered something I used to use in Ubuntu. I added a Gnome-Shell .desktop file into my /home/myname/.config/autostart folder like this [Desktop Entry] Type=App

  • Cannot connect to I tunes store while trying to do updates or to purchase

    Does anyone know how to fix this issue, I get an error message"cannot connect to iTunes store" when I try to do updates or to purchase anything from iBooks or iTunes does anyone know how to resolve this?

  • Add udf in standard report

    Dear All, Would like to ask if it is possible to add a udf in the Sales Analysis Report? since this report only have Customer Code, Customer Name, A/R invoice, Total A/R Invoice and GP, i would like to show the COGS / unit price ... thanks in advance