cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while calling a web service in BOBJ Data services

Former Member
0 Kudos

Hello Experts,

I am trying to call a web service in bobj data services. A real time job has been scheduled and published as a web service. I want to consume this service in web dynpro java.

I tried both the methods the adaptive web services and depricated version. I also tried calling the url directly and with the metadata and execution destinations.

No matter what I do, I keep getting the following error.

Exception on execution of web service with WSDL URL 'http://XXXXX:28080/DataServices/servlet/webservices?ver=2.0&wsdl' with operation 'SERVICE_<NAME>' in interface 'Real-time_Services'

The call never reaches data services system. If I try to call the service from soapUI (web service testing tool) it works fine.

I am using SAP NW 7.0 SP22 .

Here is my code in dynpro to call the service.

AdaptiveModel mod = new AdaptiveModel();

Request_SERVICE_MDM_LOOKUP request = new Request_SERVICE_MDM_LOOKUP(mod);

Query1 query1 = new Query1(mod);

Response_SERVICE_MDM_LOOKUP response = new Response_SERVICE_MDM_LOOKUP(mod);

request.setQuery(query1);

request.setResponse(response);

List list = new ArrayList();

DefinitionsTypes_XsdSchema_1__XsdElement_1__XsdComplexType_Sequence1 element = new DefinitionsTypes_XsdSchema_1__XsdElement_1__XsdComplexType_Sequence1(mod);

element.setCustomer_Name(wdContext.currentContextElement().getCustomerName());

element.setZip_Code(wdContext.currentContextElement().getZipcode());

element.setAddr1("");

element.setAddr2("");

element.setCity("");

element.setCountry("");

element.setState("");

list.add(element);

query1.set$002fDefinitions$002fTypes$002fXsdSchema$005b1$005d$002fXsdElement$005b1$005d$002fXsdComplexType$0023Sequence1(list);

wdContext.nodeRequest_SERVICE_MDM_LOOKUP().bind(request);

wdContext.currentRequest_SERVICE_MDM_LOOKUPElement().modelObject().execute();

wdContext.nodeResponse().invalidate();

wdContext.nodeQueryResponse().invalidate();

wdContext.nodeSequenceResponse().invalidate();

Please let me know if you have any pointers on how to solve this.

Thanks in advance

Praveen.

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

you should paste the detail error information

Former Member
0 Kudos

John,

This is the only exception I am getting. There is no log in the NWA logs and traces.

Do you know anoter location I can look ?

Thanks,

Praveen

junwu
Active Contributor
0 Kudos

have you create the destination?

do you use the wizard to generate code?

usually there is catch clause for this line of code

wdContext.currentRequest_SERVICE_MDM_LOOKUPElement().modelObject().execute();

Edited by: John Wu on Dec 16, 2010 11:51 PM

Former Member
0 Kudos

Yes I have created the destinations. Like I said I am trying using both with and without the destinations.

Yes i used the wizard. There is a try catch clause around execute()....I did not copy that part

Former Member
0 Kudos

Hi Praveen .. did u figure this one out ? .. would be good to get some feedback on how u resolved.