Web Service in Web Intelligence
Hi,
I am a newbie to this and am facing a problem.I want to write a Web Service in java which can act as DataSource for the document.I would be glad if anyone could tell me how to proceed or give a sample web service in java so that i can understand the format and way it is to be written. I am using BOXI 3.1 on Windows.
Regards,
Abhishek Ranjan
Amadeus Labs
Hey Abhishek Ranjan,
Format in the sense?? What are you trying to achieve??
If you want to show the WebI documnt data in Portals(Java, .Net , etc...,) You can use API's, dll's and SDK's also.
Web Services you can use for QaaWS, Xcelsius dashboarding.
Gracias...!!
Similar Messages
-
Error while calling a web service in web dynpro through XI
Hello,
I was following a blog for Invoking Webservices using SAP XI
/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
I have done all the steps specified but when I import the wsdl file in web dynpro application and deploy the project I get the following error:
<b>"Exception on execution of web service with WSDL URL 'bankws_OUT_MI.wsdl' with operation 'bankws_OUT_MI' in interface 'bankws_OUT_MI'"</b>
where:
bankws_OUT_MI -
is the message interface name.
I have defined a web service in the integration reopsitory as follows:
<b>http://PEP:50000/XISOAPAdapter/MessageServlet?channel=:bankws:s_comm</b>
where
bankws --- service name
s_comm -
sender communication channel
selected 'bankws_OUT_MI' message interface from the given choices
'bankws_IN_MI' or 'bankws_OUT_MI'.
interface name: bankws_OUT_MI -
mesage interface name
Can anyone guide me how to proceed further. Also if possible can anyone send me some helpful documentation regarding how to call a web service in web dynpro through XI.
Thanks in advance.
Regards,
Imtoolhello everyone,
I made the whole scenario again and it is running succusfully in Xml spy. Now when i call the webservice in web dynpro... I get the following error:
<b>com.sap.engine.services.webservices.espbase.discovery.BaseIOException: Invalid Response Code 200 while accessing URL: http://PEP:50000/XISOAPAdapter/MessageServlet?channel=:OOMS_WS_OUT:CC_OOMS_WS_OUT. Response Message: OK. Content Type: text/html; charset=utf8. Body Content: <html> <head><title>MessageServlet</title></head> <body> <h3>Message Servlet is in Status OK</h3> <h3>Status information:</h3> Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/xi/645_VAL_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#7 $) bound to /MessageServlet <br/>Classname ModuleProcessor: null <br/>Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean <br/>Lookupname for remoteModuleProcessorLookupName: null <br/>ModuleProcessorClass not instantiated <br/>ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0 <br/>ModuleProcessorRemote not instantiated </body></html></b>
I have also made the entry in the visual administrator for metadata_dest and execution_dest.
Does anybody have an idea what mistake i am doing.
Thanks,
Imtool -
Consuming External Web Services in Web Dynpro Java
Hi All,
I an trying to consume external web service in Web dynpro java using Adaptive Web Service Model.
But getting below mentioned error while executing the web service
Exception on execution of web service with WSDL URL 'D:\Web Service Project\CurrencyConvertor.asmx.xml' with operation 'ConversionRate' in interface 'CurrencyConvertorSoap'
Steps i followed are as below:
1. Created Adaptive Web Service Model for this i select WSDL source as "Local File System or URL"
In next step i select No logical destination radio button and click on next
In next step, browse the WSDL file and successfully import the WSDL file.
2. After successfully importing the WSDL file i wrote below code in Init method:
WebModel modelweb = new WebModel();
Request_ConversionRate reqConversion = new Request_ConversionRate(modelweb);
ConversionRate conversion= new ConversionRate(modelweb);
reqConversion.setConversionRate(conversion);
wdContext.nodeRequest_ConversionRate().bind(reqConversion);
3.After that execute the model - code is given below :
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.currentRequest_ConversionRateElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
wdContext.nodeConversionRateResponse().invalidate();
catch(Exception e)
manager.reportException(e.getMessage(), false);
Please let me know how to resolve this.
Thanks
SandyHi,
You need to use destinations for metadata and modeldata.
Configure those destination in Visula admin.
you can refer to following link.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
Regards,
Shruti. -
How to call web services in WEB DYNPRO ABAP
Hi ABAPER'S,
Please let me know how to call web services in web dynpro.
Thanks,
Sandy.Hi Sandy,
Please check this blog..
/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
also cehck this...
call the webservices in webdynpro ABAP.
calling webservice in webdynpro component
Re: Web Services in WDA.
Cheers,
Kris.
Edited by: kissnas on May 24, 2011 11:37 AM -
Consume Web Service in Web Dynpro
Hi Experts,
I´m currently trying to learn web dynpro development.
Scenario: I have one component which embed two views. One view is for enter customer number and in the other view I will see the name of the customer. The name of this customer is provided in a sap erp2005. I have develop a function modul and wich gave me the appropriate data(customer name). Then I create a web service base on this function module.
When I test this web serviec in WSNavigator, I get the customer name, so the web service is working well.
My Problem is: I can´t invoke this Web Service in Web Dynpro. My steps to invoke web service were: create a model with the web service wsdl and then I add this model in the component (in "Used Models").
I have create a application and assign it to the component. When I "Deploy new archive and Run" the application I be come the error: "Configuration not found for application: demo.sap.com/test_wd3,serviceRefId:7fecf23b-0895-48f3-9902-0e7015a705c3. Please check the configuration details from the NWA. You may have not assigned the Service Group to a Provider System, or the generation of the configuration has failed."
What do I have to consider or to set up?
It is right to assign the input field to the context parameter?
PS: I have followed the steps in this tutorial, but I don´t use XI or PI
http://www.riyaz.net/blog/xipi-consuming-xi-web-services-using-web-dynpro-part-ii/technology/sap/7/
best regards
Anna von Landsberg
Edited by: Anna_von_Landsberg on Dec 8, 2010 4:48 PMHi,
I have the following message error:
Exception on execution of web service with WSDL URL
'http://j2eeserver:port/xxxx/Config1?wsdl'
with operation 'RequestNode' in interface
'urn:xxxxx'
When i debugged it, I found the following error:
Cannot find the required parameter [unTipoProducto] in request message content.
What is wrong?, I pasted the code of my method, that call to web service in the component controller.
public void Alta_Entrega( )
//@@begin Alta_Entrega()
String tipoProducto = wdContext.currentAlta_EntregaElement().getUnTipoProducto();
Request_Alta_Entrega entregaMO = wdContext.currentRequest_Alta_EntregaElement().modelObject();
if (!wdContext.currentAlta_EntregaElement().getUnTipoProducto().equalsIgnoreCase("")){
IWDMessageManager manager = wdComponentAPI.getMessageManager();
if (logger.beDebug()) {
entregaMO.wdSetInvocationLogEnabled(true); //switch on logging for this model object
try{
entregaMO.setInvokerProperty(Stub.USERNAME_PROPERTY,"xxx");
entregaMO.setInvokerProperty(Stub.PASSWORD_PROPERTY,"xxx");
entregaMO.execute();
wdContext.nodeResponse().invalidate();
wdContext.nodeAlta_Entrega().invalidate();
}catch (Exception e){
manager.reportException(e.getMessage(),false);
logger.debugT(entregaMO.wdGetRequestLog()); //request log (HTTP header + SOAP request)
logger.debugT(entregaMO.wdGetResponseLog()); //response log (HTTP header + SOAP response)
logger.debugT(entregaMO.associatedModelClassInfo().getModelInfo().toString()); //model metadata in XML format
logger.debugT(entregaMO.toString()); //model object tree in XML format (= model context node content)
I hope you can understand me, because my english is very bad!!.
Thank you. -
Consume XI web service in web dynpro application
HI All,
I have scenario access web service in web dynpro java, which is created by XI ..Now I have WSDL file. Using that WSDL file I have imported web service model(Adaptive web service method) in my web dynpro java.
By following the PDF document = https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
I have created a Model as mentioned in the PDF.
Once model is created I have done the mapping from model to component controller, after that I need to execute the Web service model .For the execution I need to write a code in component controller :-
model class name = XIModel
XIModel obj = new XIModel();
Once I am done with the above coding , and when I try to run the application I get the following error :-
com.sap.engine.services.webservices.espbase.discovery.BaseIOException: Invalid Response Code 200 while accessing URL:http://atind037:50000/WSDL/GetPOPDF.wsdl. Response Message: OK. Content Type: content/unknown
Could you please help me with this at the earliest , as it is a urgent issue.
Regards,
Boopathi M.Hi boopathi,
It seems your wsdl url is not correct. Put the http://atind037:50000/WSDL/GetPOPDF.wsdl
in your browser and check whether you are getting the WSDLDefinitions in xml format or not ?
In wsdl url put ? instead of .
URL : http://atind037:50000/WSDL/GetPOPDF?wsdl
call adaptive web services mit Parameter
Regards,
Mithu -
Help - cannot access web service outside web proxy
I'm trying to access a public web service - and web proxy stops me from doing it.
Here is my code:
package test;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import net.webservicex.www.WeatherForecastLocator;
import net.webservicex.www.WeatherForecastSoap;
import net.webservicex.www.WeatherForecastSoapStub;
import net.webservicex.www.WeatherForecasts;
import java.net.*;
import java.io.*;
public class TestOutput {
public static void main(String[] args) {
initialiseConfiguration();
printForecast();
public static void initialiseConfiguration() {
System.setProperty("http.proxySet", "true");
System.setProperty("http.proxyHost", "proxyserver");
System.setProperty("http.proxyPort", "8080");
System.setProperty("http.proxyUser", "userid");
System.setProperty("http.proxyPassword", "password");
public static void printForecast() {
try {
WeatherForecastLocator wfl = new WeatherForecastLocator();
WeatherForecastSoap wfs = wfl.getWeatherForecastSoap();
WeatherForecasts forecasts = wfs.GetWeatherByZipCode("90210");
} catch (Exception e) {
e.printStackTrace();
}Here, I was using the test web service located in www.webservicex.net/WeatherForecast.asmx
I've created stubs using Eclipse (package net.webservicex.www) in another project, compiled into a jar, and imported into the test project.
The test is working beautifully from my home. It's failing in the office with the error:
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (407)Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
faultActor:
faultNode:
faultDetail:
{}:return code: 407
It's failing when it's trying to execute
WeatherForecasts forecasts = wfs.GetWeatherByZipCode("90210");
The "initialiseConfiguration" function is doing its job OK - it's actually helping me to go through the proxy - if I'm doing simple stuff like accessing internet sites. I've tested it - I can get to any external site and read from it. The moment I disable "initialiseConfiguration", I can't get through the proxy.
So, probably, the problem lies in the web services client classes generated by Eclipse and based on axis. Maybe, the code gets through the proxy, but then starts to do something without authentication??? (I'm not sure if it's possible at all, but who knows...)
I've read a lot of postings on this subject and couldn't find a solution that would work for me. I'm very surprised, because my situation is very common - there are more and more public web services, and most organisations have firewalls. Obviously, I'm making some very elementary mistake.
Please helpWe have the same problem, not with SOAP but with XML-RPC (err 407). We're still stumped, and i agree that the problem should be common, but i don't see the mistake, so it's not that obvious.
Hypothesis: the proxy is spying on the requests content , and filtering out xml. Can you check that ?
Message was edited by:
idiallo -
Error when querying REST web services from web-based InfoPath form 2013 environment
Error when querying REST web services from web-based InfoPath form 2013 environment, we are trying to consume REST web service in InfoPath form ( SharePoint 2013 version)
http://spapp/sites/litigation/Intake/_api/web/lists/getbytitle('Email%20Profiles')/items(1)
it works in preview but does not when it is published. because of claim based authentication i m getting below error
The form cannot run specified query, the underlying connection was closed. An expected error occurred
same works in 2010 environment .. are we missing anything in 2013 servers?? please let me know how we can resolve it.. thank you
gurueveryone face this issue, nothing in event viewer, its easy to reproduce error at ur end also..
just you need to use below web service in infopath and populate some data on form load like id = 1 pull the title and try to set in form any field...the
list has one item thats all
guru -
Error in testin sender synchronous web service using web service navigator
Hi
sorry my connection got disconnected ..
I am testing my web service through web service navigator in PI 7.1
then when i click on import test data tab and select my wsdl and click on "go" button . i get the error
"XML Deserialization Error. XML is not valid. Node <documentation> child of <null> not described in Schema."
pls help
ninad
Edited by: Ninad Sane on May 26, 2009 3:50 PMHi Ninad,
While importing wsdl, select category as "WSDL", you are trying to import it as XSD.
Hope this will help.
Thanks,
Nilesh -
Error while implementing a web service in web dynpro application
HI All,
I am trying to use a webservice in a web dynpro application.
Web service description:- This is a very simple application which takes two String inputs and when submitted displays the string in the concatenated form.
Web dynpro:- I used this web service in the web dynpro as an adaptive web service model.
The Layout design consists of two input fields which are mapped to the request fields
ex : - Request_Add.Add.S1 and Request_Add.Add.S2
A text area to display the response:- Request_Add.Response.AddResponse.Response
And a button which invokes the execute method
public void onActionWebserviceCall(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionWebserviceCall(ServerEvent)
wdThis.wdGetWebserviceCompController().executeRequest_Add();
//@@end
When I am trying to run the application I am getting error:-
Exception on execution of web service with WSDL URL 'http://<Host>:<Port>/EjbWebservice/Config1?wsdl' with operation 'add' in interface 'EjbWebserviceVi_Document'
Kindly reply.
Thanks
NehaHi,
Yes I have tested the web service in Navigator . The WSDL is also properly generated.
I have not publish the web service in UDDI but as per my understanding this is not necessary. please correct me if I am wrong.
Thanks
Neha -
Error while executing Secure SOAP web service from Web Service Navigator
Hi All,
I have created a web service for a stateless session bean choosing option "Secure SOAP".
When I am testing it through web service navigator, it is showing following error:-
Security: Authentication expected but missing
And in response text it is showing following :-
HTTP/1.1 500 Internal Server Error
Connection: close
Server: SAP J2EE Engine/7.00
Content-Type: text/xml; charset=UTF-8
Date: Wed, 17 Dec 2008 05:42:10 GMT
Set-Cookie: <value is hidden>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Security: Authentication expected but missing</faultstring><detail><ns1:com.sap.engine.interfaces.webservices.runtime.ProtocolException xmlns:ns1='http://sap-j2ee-engine/error'>Security: Authentication expected but missing</ns1:com.sap.engine.interfaces.webservices.runtime.ProtocolException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Can anybody help me with above thing?
And my second question : I have created web service with "Basic Auth SOAP" option. and while executing at web service navigator, its asking for username & password.
What role / right should be granted to this user so as to make him able to execute this web service? This user must be a UME user, correct?
Pls help me in resolving this.
Thanks and regards,
Amey MogareHi Fazal,
I have read the thread, but my questions are still unanswered.
1. I know how to set username and password while using "Basic Auth SOAP" protocol. But my question in this case is what are the accesses user requires to be able to execute web service.
2. And about Secure SOAP, why is above mentioned error is appearing?
Thanks and regards,
Amey Mogare -
Error invoking Web Service from Web application in BEA
I have a web service wich run fine at bea weblogic.
If i invoke it from webapp in sunappserver no problem , from plain client no problem , from oc4j no problem, but if a invoke from same webapp from weblogic i get this error:
<b>java.rmi.RemoteException: Failed to invoke; nested exception is:
javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to ser
ialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup
failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://ejb.ds
ic.pucv.cl/types/']:getMatriculaElement}
at jrockit.reflect.NativeConstructorInvoker.newInstance([Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at java.lang.reflect.Constructor.newInstance([Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at weblogic.webservice.core.rpc.StubImpl.throwRemoteException(StubImpl.java:269)
at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:254)
at $Proxy46.getMatricula(Ljava.lang.String;)Ljava.lang.String;(Unknown Source)
at cl.pucv.dsic.ws.cliente.ClienteWebService.getMatricula(ClienteWebService.java:100)
at cl.pucv.dsic.consulta.queryBtn_action(consulta.java:667)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.
Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown S
ource)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
at javax.faces.component.UICommand.broadcast(UICommand.java:312)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
Caused by: javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to
serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping look
up failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://ejb
.dsic.pucv.cl/types/']:getMatriculaElement}
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:334)
at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:250)
at $Proxy46.getMatricula(Ljava.lang.String;)Ljava.lang.String;(Unknown Source)
at cl.pucv.dsic.ws.cliente.ClienteWebService.getMatricula(ClienteWebService.java:100)
at cl.pucv.dsic.consulta.queryBtn_action(consulta.java:667)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.
Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown S
ource)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
at javax.faces.component.UICommand.broadcast(UICommand.java:312)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.jav
a:3212)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)</b>
the WSDL for this ws is:
<b> <?xml version="1.0" encoding="UTF-8" ?>
- <definitions name="WSMatricula" targetNamespace="http://ejb.dsic.pucv.cl/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="http://ejb.dsic.pucv.cl/types/" xmlns:s1="http://ejb.dsic.pucv.cl/" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/">
- <types>
- <xsd:schema elementFormDefault="qualified" targetNamespace="http://ejb.dsic.pucv.cl/types/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://ejb.dsic.pucv.cl/types/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://ejb.dsic.pucv.cl/types/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsd:element name="getMatriculaElement" nillable="true" type="string" />
<xsd:element name="getMatriculaResponseElement" nillable="true" type="string" />
</xsd:schema>
</types>
- <message name="EJBConsultaWebService_getMatricula">
<part element="s0:getMatriculaElement" name="parameters" />
</message>
- <message name="EJBConsultaWebService_getMatriculaResponse">
<part element="s0:getMatriculaResponseElement" name="result" />
</message>
- <portType name="WSMatricula">
- <operation name="getMatricula">
<input message="s1:EJBConsultaWebService_getMatricula" />
<output message="s1:EJBConsultaWebService_getMatriculaResponse" />
</operation>
</portType>
- <binding name="WSMatriculaSoapHttp" type="s1:WSMatricula">
<s2:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="getMatricula">
<s2:operation soapAction="http://ejb.dsic.pucv.cl//getMatricula" />
- <input>
<s2:body parts="parameters" use="literal" />
</input>
- <output>
<s2:body parts="result" use="literal" />
</output>
</operation>
</binding>
- <service name="WSMatricula">
- <port binding="s1:WSMatriculaSoapHttp" name="WSMatriculaSoapHttpPort">
<s2:address location="http://ip:port/EJB-WebServicesDSIC/WSMatriculaSoapHttpPort" />
</port>
</service>
</definitions></b>
and the client is
<b>
package cl.pucv.dsic.ws.cliente;
import com.ac.util.MyDOMParser;
import java.util.Hashtable;
import java.util.ArrayList;
import com.ac.util.Config;
import java.net.URL;
import javax.xml.rpc.Service;
import javax.xml.rpc.JAXRPCException;
import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceFactory;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import java.io.*;
public class ClienteWebService implements Serializable {
private String UrlString = "";
private String nameSpaceUri = "";
private String serviceName = "";
private String portName = "";
public ClienteWebService() {
public String getMatricula(String servicename, String param) throws Exception
try
Hashtable ht = (Hashtable)Config.getInstance().getHashtable("WS","Nombre",servicename);
setUrlString((String)ht.get("EndPoint"));
setNameSpaceUri((String)ht.get("URI"));
setServiceName((String)ht.get("ServiceName"));
setPortName((String)ht.get("PortName"));
URL wsdlUrl = new URL(getUrlString() + "?WSDL");
ServiceFactory serviceFactory = ServiceFactory.newInstance();
Service helloService =
serviceFactory.createService(wsdlUrl,
new QName(getNameSpaceUri(), getServiceName()));
WebServiceDSICIF myProxy =
(WebServiceDSICIF) helloService.getPort(new QName(getNameSpaceUri(),
getPortName()),
WebServiceDSICIF.class);
return myProxy.getMatricula(param);
catch (Exception ex)
ex.printStackTrace();
return "<ERROR>"+ ex.getMessage()+"</ERROR>";
public static void main(String[] args) {
try {
ClienteWebService clws = new ClienteWebService();
ArrayList l = new ArrayList();
String xml = "";
if (args.length>0)
xml = clws.getMatricula("WsSQL",args[0]);
System.out.println("Rut : " + args[0] + " = " + xml);
else
DataInputStream input = new DataInputStream( System.in );
String bufferIn;
while((bufferIn = input.readLine()) != null){
xml = clws.getMatricula("WsSQL",bufferIn);
System.out.print("Rut : " + bufferIn + " = " + xml);
} catch (Exception ex) {
ex.printStackTrace();
public String getUrlString() {
return UrlString;
public void setUrlString(String _UrlString) {
this.UrlString = _UrlString;
public String getNameSpaceUri() {
return nameSpaceUri;
public void setNameSpaceUri(String _nameSpaceUri) {
this.nameSpaceUri = _nameSpaceUri;
public String getServiceName() {
return serviceName;
public void setServiceName(String _serviceName) {
this.serviceName = _serviceName;
public String getPortName() {
return portName;
public void setPortName(String _portName) {
this.portName = _portName;
}</b>
and the external config for this service is:
<b><Webservices>
<WS>
<Nombre>WsSQL</Nombre>
<EndPoint>http://ip:port/EJB-WebServicesDSIC/WSMatriculaSoapHttpPort</EndPoint>
<URI>http://ejb.dsic.pucv.cl/</URI>
<ServiceName>WSMatricula</ServiceName>
<PortName>WSMatriculaSoapHttpPort</PortName>
</WS>
</Webservices></b>
please helpme, four days in that :SHi,
Can you provide the pl/sql function or the web service wsdl generated from it, so that we can try to reproduce it.
Also, in an earlier post, I saw a workaround of changing it so the function returned defined type as :
type ListCursor is ref cursor return ListRecord
You can also see if this works out if possible.
Regards,
Sunil.. -
Error 403 while executing Web Service through Web Service Navigator
Hello All,
I am trying to execute "Create Sales Order" Web Service from WS Navigator. After filling all the input parameters and clicking on execute button, I get a error message
Failed Invalid Response code (403)
I know the execution is not reaching the back end proxy class. Any inputs on what could be causing this issue?
Regards,
AbhishekHi Abhishek,
Error code 403 means that the [access is forbidden.|http://en.wikipedia.org/wiki/HTTP_403]
This means that the user access that is being used to access the Web Service / Backend Proxy does not have enough authorizations to perform the action.
Check this user id, and its roles.
Regards,
Alka. -
Web service in Web Dynpro development Component
Hi All,
I have created a web service in SAP GUI and I have saved the WSDL file on my local PC.
Now when I create a web service model in a simple web dynpro project it works perfectly.
But when I do the same in a web dynpro development component; as soon as the web service model instance is associated with the activity in the DTR my application get hanged. I have to quit my NWDS. When I reopen NWDS my application shows following errors:
<i>Kind Status Priority Description Resource In Folder Location
Error <b>XMLTokenWriter cannot be resolved</b> (or is not a valid type) for the argument writer of the method serialize Char1.java JD2_ADBESP6_Dtestwebservicesap.com/src/packages/com/adobe/mo_web1/proxies/types line 57
Kind Status Priority Description Resource In Folder Location
Error <b>typeRegistry cannot be resolved or is not a field</b> Z_WS_GETEMPINFO_FULLSoapBindingStub.java JD2_ADBESP6_Dtestwebservicesap.com/src/packages/com/adobe/mo_web1/proxies line 29
Kind Status Priority Description Resource In Folder Location
Error <b>transportBinding cannot be resolved or is not a field</b> Z_WS_GETEMPINFO_FULLSoapBindingStub.java JD2_ADBESP6_Dtestwebservicesap.com/src/packages/com/adobe/mo_web1/proxies line 22
Kind Status Priority Description Resource In Folder Location
Error <b>SOAPSerializationContext cannot be resolved</b> (or is not a valid type) for the argument context of the method serialize Char1.java JD2_ADBESP6_Dtestwebservicesap.com/src/packages/com/adobe/mo_web1/proxies/types line 50
Kind Status Priority Description Resource In Folder Location
Error <b>SOAPDeserializationContext cannot be resolved</b> (or is not a valid type) for the argument context of the method deserialize Char1.java JD2_ADBESP6_Dtestwebservicesap.com/src/packages/com/adobe/mo_web1/proxies/types line 26</i>
Regards
sidHi Sidharth,
Which version of NWDS you are using. I was facing the same problem with SP16 sometime back.
I did find a workaround to do that. See, whenever you will create the WS Model in Web Dynpro DC, it will ask you to add some file in DTR..right!!........ do one thing press "Cancel" or "No" there. Then studio will ask one more time to add the files, in different dialog box though. Add the files from the second dialog box rather than the first one.
Regards,
Mausam -
Error consuming web service in web dynpro
Im looking up https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0d9336b-b4cf-2910-bdbf-b00d89bd2929 to consume a webservice in web dynpro.
I deployed the ear file containing the web service.
Now when I create an adaptive web service model in web dynpro project i get an error:
Error in loading wsdl file. Check the error log for more details.It seems to work well with just "Import web service model" - but its deprecated...
What can we do about the adaptive option?
Maybe you are looking for
-
I remember reading on the Panasonic website that the SDX900, which shoots native 16:9 DVCPRO 50, is a good contender for an up rez to HD. How would you go about doing this through FCP? And what flavor of HD? Also, what are your thoughts on this whole
-
I cannot connect to an existing network
I'd like to use AE to connect wirelessly to a USB printer. I've followed all of the instructions to set-up AE to the letter. I get a connection to the Airport Base Station. The light on the AE goes to solid green for about 4 seconds and then it start
-
Using tiles - servlet filter called multiple times
Hi I have an application in we have 7 filters defined. Now in a jsp page, I have a loop that inserts a TILE. The loop iterates about 7000 times. Every time the tile insert is called, even my filters are called. So my 7 filters are called 7000 times.
-
Hi, I am trying to test how workflow works. I have created a button in the form to initiate workflow. The workflow contains simple start --- email notification -- End. So everytime I click the button it should send email notification. <!-- MemberObje
-
hi guys, I developed an application to be used be 1500 users and deployed to tomcat. It hangs after working for a while how can i resolve this