Web dynpro web service consumption exception
Hi All,
I am getting an exception while executing my web dynpro application, which basically try to cunsume a web service method with a single input string parameter
Let me put down the steps I followed for developing this web dynpro
1) Created a Web dynpro project
2) Created an Application under it, and a component and a view is been associated to it
3) From the data modeler, created a new model, which basically inherits a Adaptive web service
4) From the controller I used apply template, which created a data link to the Controller and model
5) Created a datalink from View to Component controller and mapped the associated fields
6) In the Action tab created a new action "xx"
7) In the Layout of view created a Group UI component and associated all the fields from the context to the Group
8) Created a button to invoke the action.
9) Under the implementation tab, I called the execute controller's execute method
10) Controller class is fully generated by web dynpro , as I have given apply template (Binding in wdDoInit(), calling
modelObject().execute() method is generated by itself)
11) Once after building, deploying and running I got the screen with non editable fields and on clicking the button I
I got the exception as mentioned below
Exception on execution of web service with WSDL URL 'http://iwdfvm2225:50000/WsTest/Config1?wsdl' with operation 'TestMethod' in interface 'WsTestVi_Document'
12) But Web service works fine and returns proper value, when tested directly.(Using Web Services Navigator - Test )
Please help me to fix the issue
Thanks in advance
Regards
Bala
hi balamurugan,
Try to reimport the model once again and do a server restart. This might help you. Sometimes the mapping will not be recognised.so you will tend to get such exceptions.
You comment off the code where you are catching the exception and debug what values are getting passed to the backend.
If you have portal access, then immediately after you get this exception, check your portal log viewer.You will find out what is the error for.
Thanks,
NP
Similar Messages
-
Can Web Service Consumption in SAP CRM 7.0 handle multiple records
Hi All,
I have a requirement where in I need to Consume a web service in SAP CRM. The response of the web service will have multiple records.
My questions is will Web Service Consumption in SAP CRM 7.0 be able to handle these records in a popup or not.
I would like to know whether it is feasible or not.
Thanks,
DeepikaHi Kavita,
There is a standard column in UWL with name 'Sent Date'. Other functionalities in UWL for example deadline monitoring (Due date column) are based on this sent date. This shows an employee what was the date workitem was created (sent date) and when it will get escalated (due date). Displaying forwarding date in Sent date will not give clear picture to employee as the deadline will be calculated based on sent date only not based on forwarding date. this was just an example.
even though if your client is insisting, i dont think it can be done without any enhancement in UWL web dynpro com sort of thing. you can check with your portal consultant too.
Regards,
Ibrahim -
Web Service Deployment Exception
Hi All,
I have created a Stateless session bean in which i am accessing JPA entities.
In my session bean I have two methodes and i exposed those methodes as web services. I deployed this ejb project into server and search for my web service in Web Service Navigator. I didn't find my web service. Then I observer server logs. It is throwing a Web Service Deployment exception.
Code:
@WebMethod(operationName="readChannel", exclude=false)
public ReadChannelResMsg readChannel(@WebParam(name="readChannelReqMsg")
ReadChannelReqMsg readChannelReqMsg) {
ReadChannelResMsg readChannelResMsg=new ReadChannelResMsg();
readChannelResMsg.setChannel(channelDao.findById(readChannelReqMsg.getChannelId()));
return readChannelResMsg;
Exception:
[ERROR CODE DPL.DS.5030] Clusterwide exception: [server ID 3324150:Exception occured during web services deployment. Unable to generate serialization framework for web service ProgramPlanWS, application hcl.com/longterm_plan_ear.
-> class com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5:library:jaxb20 [email protected] alive incompatible with class com.sun.xml.bind.v2.model.impl.ClassInfoImpl:library:jaxb20 [email protected] alive
server ID 3324150:com.sap.engine.services.deploy.container.DeploymentException:
Why this exception is coming and how can i resolve this issue?
Thanks
Sampath GHi,
the initial exception suggest
After an upgrade from SAP NetWeaver release 2004 to SAP NetWeaver release 7.0, according to the new SAP security policy, the J2EE Engine administrator user may be prompted to change his or her password. The password is changed in the User Management Engine (UME).
According to SAP security policy, the J2EE Engine administrator password must be changed every 90 days. The password is changed in the UME.
However, SDM reads the J2EE Engine administrator password not from the UME, but from the secure storage instead. The J2EE Engine administrator password is not changed in the secure storage. For more information, see SAP Note 870445.
and the possible Solution could be
Change the J2EE Engine administrator password in the secure storage
Regards
Manohar -
Somehelp regarding Web service consumption in portal component
hi all,
I need Somehelp regarding External Web Service consumption in portal component.
I have a wsdl file, but when i try to create a model using wsdl in portal it is showing cannot to read the wsdl file.
is there any other way i consume wsdl in portal.Hi,
mybe it's an authorization problem while reading the WSDL file?
Try to include it like this:
http://mycompany.net:8000/sap/bc/srt/rfc/sap/Z_Webservice_Test?sap-client=800&wsdl=1.1&sap-user=USERNAME_ON_BACKEND&sap-password=XXXXXXXXX
Thomas -
Web Service Consumption in Web Dynpro Java
Hi,
I'm using NetWeaver 2004s for Java. I have generated a Web Service out of a BAPI. I use that Web Service in a Web Dynpro Java Application as Model. Model generation works fine. But when I call the Web Service during execution of the corresponding Web Dynpro Application, I get the following Exception:
"java.rmi.RemoteException: Service call exception; nested exception is: java.lang.Exception: Call to returned http code 500 with unacceptable content type (text/html; charset=iso-8859-1). <HTML> <HEAD> <TITLE>Unknown Host</TITLE> </HEAD> <BODY BGCOLOR="white" FGCOLOR="black"> <H1>Unknown Host</H1> <HR> <FONT FACE="Helvetica,Arial"><B> Description: Unable to locate the server named "<EM>us0308.wdf.sap.corp</EM>" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again. </B></FONT> <HR> </BODY>"
Testing the Web Service via transaction WSADMIN works fine. Can anybody give me an advise how to solve that problem?
Thanks in advance!
Regards,
FrankHad Exactly same problem with authorization issues on the server hosting the webservices.
Create a CPIC user Id on the server hosting the webservice. The user id should have authorization to execute the webservice.
Create a webservice destination in VA for the said webservice using the user id
1. Log on to the J2EE Engine as an administrator using the Visual Administrator.
2. Expand -> Server ->Services.
3. Select the Destinations service.
4. Under Destinations, select HTTP and choose New
You need to create two destinations one for matadata and another for execution data.
Use the destinations while creating the WS model in NWDS.
if you have issues importing the model using the URL, you can create the model using the WSDL and use the WS Destinations to execute it.
I am following the same approach after i had faced similar issues with webservices on PI7.1 and Portal 7.0
About the option to use _setusername, _set...., not all webservices come with the _set methods.
and moreover if you do that, it would be more of hardcoding in the code, which should be avoided.
Regards,
Nitin
Edited by: Nitin Mahajan on Jun 11, 2009 6:11 PM -
Starting web service throws exception, Web Dynpro ABAP, for experts
Hi,
i have create a web service (from a FM), a proxy object (transactions: wsconfig, wsadmin) and a logical port (transaction: lpconfig).
If i run the application an exception is thrown and the showText-Method says
SOAP Error 4: Operation not supported
I can't find anything about this error.
RegardsHallo,
thanks.
My code:
Client Proxy
DATA: service TYPE REF TO zpc_co_reset_user_password .
data: lo_sys_exception type ref to cx_ai_system_fault ,
err_string type string.
TRY.
CREATE OBJECT service
exporting
logical_port_name = 'DEFAULT'.
CATCH cx_ai_system_fault .
ENDTRY.
DATA: user TYPE zpc_reset_user_passwordinput .
DATA: out TYPE zpc_reset_user_passwordoutput .
TRY.
user-bname = sy-uname.
CALL METHOD service->zbc_reset_user_password
EXPORTING
input = user
IMPORTING
output = out.
message = out-message.
catch cx_ai_system_fault into lo_sys_exception.
err_string = lo_sys_exception->get_text( ).
CATCH cx_ai_application_fault.
ENDTRY.
In the WSDL-File
- <wsdl:portType name="ZWS_RESET_SAP_PASSWD">
- <wsdl:operation name="ZbcResetUserPassword">
<wsdl:input message="tns:ZbcResetUserPassword" />
<wsdl:output message="tns:ZbcResetUserPasswordResponse" />
</wsdl:operation>
</wsdl:portType>
How should i call the operation?
I create the object for the proxy and then i call the proxy method zbc_reset_user_data.
What's wrong?
Regards -
Web Service Model Exception ?
Hi @,
I am using Web Service Model in my application and when I deployed the same and run it I am getting the following exception:
javax.xml.rpc.ServiceException: not found assignment to a physical system for the service group ValueMapServ
at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getDestinationsHelperInner(DestinationsHelperImplSoa.java:327)
at com.sap.engine.services.webservices.espbase.client.dynamic.DestinationsHelper.getDestinationsHelper(DestinationsHelper.java:50)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getDestinationsHelper(GenericServiceFactory.java:594)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:336)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:321)
Can anyone help why this error is coming.
Regards,
AmitHi Fazal,
Where can I define Web Service Destination as the document you have mentioned refers to the Service group approach and I am not using the same.
Now when I am running app I am getting Exception :com.sap.engine.services.webservices.espbase.discovery.TargetNotMappedException: Logical Target destination with name : DEFAULT_WS_METADATA_DEST does not exist not mapped to a physical system.
Regards,
Amit -
Proxy Object generation error using Wizard for Web Service Consumption
HI all,
I am using the Web Service Proxy Object Generation Wizard (via SE80) and have successfully been able to create a Proxy Object for a Web Service which resides on our INTRAnet.
...But now I am trying to consume a Web Service out on the INTERnet and I get an error I cannot quite understand when generating the Proxy Object using the URL of the WSDL of the SOAP Web Service.
The initial error in SE80 simply states "No vendor specified", but when I double-click on the error to get the long text I get the following error:
Incorrect value: Namespace prefix q1 of QName q1:RequestArray is undeclared
Exception of class CX_SLIB
Has anyone seen this or have experience with this?
I am a senior ABAP-er but have very little experence on the web development side of things so this looks very foreign to me.
Any input would be GREATLY appreciated!
Thanks!!
-ChrisRESOLVED! ---
I figured it out with further trial and error...
Turns out I was using the SOAP version of the WSDL (I had a choice b/ween SOAP, REST, and XML).
When I simply supply the XML version of the WSDL to the Proxy in the Web Services Wizard, the error vanished and the Proxy Objects generated just fine !!
..Closing this problem.
Edited by: Christopher Twirbutt on May 26, 2009 5:36 PM
Edited by: Christopher Twirbutt on May 26, 2009 5:37 PM
Edited by: Christopher Twirbutt on May 26, 2009 5:39 PM -
Dynamic Web Service Consumption
Hi
I want to know if it is possible to consume a web service dynamically. Or is there any other way to consume web service in JSP without using proxies.
I have already done consumption using deployable proxies but the way of consuming the web service is hardcoded. We have 3 landscape boxes (development box, maintenance box, production box). The problem is the URL for each WSDL in each box is different. So if we move our code from say dev box to maintenance box we have to edit our code for consumption before moving our codes. I hope there's a way to consume our web service/ WSDL dynamically.
Thanks.Hello Melanie, I wanted to ask you:
how do you do a deployable proxy in 7.3 ?
In 7.0 I used to make a "Deployable Proxy Project", and now I don't know how to go.
I have tried with an "Entreprise App. Project" wich in it has a "EJB project" wich also has an "Web Service Client". I don't know if Im doing it the right way.
Thanks. -
Web Service consumption in Apex 3.1
Hi -
Are there any guidelines on how web services should be built for apex?
I had a sample WSDL one time, which worked for other reporting tool, but did not work in apex. I was getting err message saying '...there is no result tree node...'.
Thanks in advance,
TomHi,
If you are calling web service using PLSQL then definitely DBMS_SCHEDULER will do.
Refer: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
Web Service Consumption + SM59 ( HTTPS)
Hello ABAP Gurus,
I have issue to consume web service. I am trying to consume web service form external plm server. it has https protocol. For this i tried to create rfc type G for external server but I am wondering that what i need to know to create rfc to ping https web service. I created rfc but not able to ping by sm59 and only reason i am finding is this it is http not https but i am sure you can create rfc for https also. we are on ecc6.0 and SAP_ABA patch level 21. I will greatly appreciate if someone can help me out from this issue.
Thanks in advance.
Regards.
DaveHi Sanoosh,
There seems to be a routine problem with Adobe on HTTPs even when it says HTTP/HTTPS in dataconection.
follow the below post with similar issue.
Re: Calling HTTPS Webservice error
the final post from Otto there gives you series of steps to resolve this.
Regards,
Sai -
Web Service consumption in Web Intelligence
Dear Community Members,
does anyone have an idea how-to consume Web Services in Web Intelligence?
The scenario is the following:
The data is stored as XSTRING (ABAP AS) and it is retrieved via ABAP Web Service which translate the XSTRING into STRING.
However, is there a possibility to consum this web service in Web Intelligence resp. is it possible to access the data via SQL as Ingo Hilgefort has it posted on his wiki Page to access SAP via SQL:
/people/frederic.vanborre/blog/2009/05/18/how-to-configure-the-sql-bw-connector
/people/thomas.zurek/blog/2009/03/06/sql-access-to-bw-via-data-federator
/people/frederic.vanborre/blog/2009/05/07/do-you-want-to-query-sap-bw-using-sql
Thanks in advance for any suggestions.
Best Regards,
MarcelUse the WebI rich client (assuming you are using XI 3.x) to build a new report. Activate the Other data sources option and choose there Web services . It will enable you to choose a Web service as data source.
Starting with SP3 this type of provider can be refreshed dynamically when the report is viewed in the InfoVIew.
I would recommend to take a look at the WebI rich client user's manual:
http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_webi_rich_en.pdf
Regards,
Stratos -
Hi expert,
we have two instance in our production.
web service are implemented in both instance
http://instance1.demo.com/bpm/update/process/StartProcessIn?wsdl&mode=ws_policy
http://instance2.demo.com/bpm/update/process/StartProcessIn?wsdl&mode=ws_policy
we have web dispatcher in front of the two instances.
we are using service group to configure the ws call.
the auto generated configuration always connect to specific instance, let's say http://instance1.demo.com/bpm/update/process/StartProcessIn?wsdl&mode=ws_policy.
it seems a single point of failure.
if instance1 is down. the call will be failed. but instance2 is alive, the call should go there.
so i want to know if i can configure the ws call in the service group that use the url of web dispatcher
http://webdispatcher.demo.com/bpm/update/process/StartProcessIn?wsdl&mode=ws_policy
at runtime it will automatically call the alive instance.
our system is CE7.2 SP4
the ws and ws consumer are in the same system.
thanks
Johnclose
-
Web Service consumption fails in BPM
Hi,
I am new in the BPM and trying to create some demo applications using the tutorials from SDN.
I have created a BPM process and import a web service in that for an automated activities.
During execution the web service fails and giving the the following error.
"Unable to generate configuration data - The service group might not registered with the provider system".
I've tested the web service is running fine from the web service navigator.
I am using CE7.1.
Regards
IndraHi Indra ,
You should assign a service group for the automated activity in your process. Click on the automated activity in the design time and goto properties tab and select "Interface". There you can create a new service group. This should fix the error you are getting.
Regards,
Rohit -
Authorization error calling a XI web service from Web Dynpro
Hi all,
I'm trying to communicate to XI from a Web Dynpro application but I get an Unauthorization error (401).
I've generated a WSDL in XI and import it to web dynpro as a new Model. But when a I call the web service, the exception "Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized." appears.
I don't know how to pass the right user and password from Web Dynpro, I've tried the web service from SOAP client tools and it works fine.
I'll apreciate any help.
Regards,
Diego.Hola mi nombre es Luis,
Creyendo que eres español te escribo en tal idioma.
He visto que a ti también te devolvía un error de autentificación 401, y que lo subsanaste, pero a mi con la solución que te dieron no me vale, ya que implemento el código que te ofrecieron para arreglarlo y ahora me da un fallo de "Server Error" poniendo en usuario y password, los correspondientes a XI.
+Request_MI_outTurnoverDetailsDisplay_MI_outTurnoverDetailsDisplay req=new Request_MI_outTurnoverDetailsDisplay_MI_outTurnoverDetailsDisplay();
wdContext.nodeRequest_MI_outTurnoverDetailsDisplay_MI_outTurnoverDetailsDisplay().bind(req);
req._setUser("username");
req._setPassword("password");+
No sé si es que ese usuario y contraseña son otros distintos.
Si pudieras ayudarme, te lo agradecería.
Un saludo, Luis
Maybe you are looking for
-
Cannot uninstall or install iTunes and more...
I cannot uninstall or install the latest version of iTunes, and I cannot activate itTunes via the desktop shortcut. When I try, it says that the application is only available for installed products, even though iTunes is installed on my computer. Any
-
Hi, I've noticed a weird doc on my OS drive in last few days, does anyone have a clue what it may be ? %FF%FF%FF%FF%FF%FF%FF%FF %DD%FF%FB%FF%FF%FF%C0 zero bytes only thing that's changed for me is i have connected a davado Tiny router to my system
-
Adobe Document Services URL problem
Hi, I am trying to connect to the adobe document services to test the configuration, but getting the following kind of error: "Adobe document service can not be started". can somebody tell me how to resolve this? Thanks, Sunita.
-
Problem viewing YouTube Videos
All of a sudden I'm having difficulties viewing videos on YouTube in particular. Video takes too long to load, frames are jerky, counter keeps going back and forth at the end of the video. Moreover, my Mac is very slow during the process and almost c
-
Thread 1:signal SIGABRT in Xocde,Ios,objective-C
2013-02-15 16:20:10.222 Addition1[463:11303] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key label7.' *** First throw call stack: (