cancel
Showing results for 
Search instead for 
Did you mean: 

WDWSModelExecuteException: Exception on execution of web service with WSDL

Former Member
0 Kudos

Hi Experts,

I'm facing with the error when i have run the webservice model in my webdynpro componet controller

"Exception com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'http://mgr33088:50000/LocWS/Config1?wsdl ' with operation 'Search' in interface 'LocWSVi_Document'"

1) I have taken a value object with the following structure :

public class LocationTO implements Serializable {

private String GlobalID;

private String Address;

private Vector objVect = new Vector();

<b>Note: Also tried with "private ArrayList objList=new ArrayList();"</b>

2) I have exposed this as webservice which is working fine.

3) I have created adaptive webservice model with no logical destinations by giving the webservice url.

4) I have consumed this model in Webdynpro component controller.

Here i'm getting the above error before i execute the model instance.

<b>Note: It is working fine when I have tried with out taking the list object..</b>

Could you please tell me whether there is any constraints in using "Array list or Vector in Webdynpro...

And also kindly advice me how should i resolve this problem.

I would appreciate your support in this regard and anticipating earlier response.

Kind Regards,

Vishali.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Are you passing object of LocationTO as argument to Webservice?

and also which data type you have taken in the backend. Because...

when coming to AdaptiveWS model if you pass LocationTO object as argument,

the code will slightly changes.. and I worked with it.

Please clear the above two.

Regards

LakshmiNarayanaChowdary.N

Former Member
0 Kudos

Hi LakshmiNarayana,

Thank you for your response.

1) I'm giving an input of user Id and getting the response with User details as well LocationTO which is in the form of List obj.

2) This ListObj is set to the LocationTO.These methods are defined in Facade bean which is exposed as webservice.

3)I'm consuming the webservice model in Webdynpro.

4) I used Simple SOAP

The structure is as follows:

Request- user Id

Response (test.types.UserProfileTO)

GlobalID

Address

+locationList(java.util.ArrayList)

I really appreciate your response to my thread.

Many Thanks,

Vishali

Former Member
0 Kudos

Hi Vishali

Now try this code (I've just implemented,it's worked )

create model using "localserver"

then change the names in this code according to yours.

IWDMessageManager objMessageManager=wdComponentAPI.getMessageManager();

try {

String userId="101";

TestRetrieveModel retrieve=new TestRetrieveModel();// object for Model

Request_RetrieveByUserId obj=new Request_RetrieveByUserId(retrieve);

wdContext.nodeRequest_RetrieveByUserId().bind(obj);

RetrieveByUserId retById=new RetrieveByUserId(retrieve);//object for Method name

retById.setUserId(userId);

wdContext.currentRequest_RetrieveByUserIdElement().modelObject().setRetrieveByUserId(retById);

wdContext.currentRequest_RetrieveByUserIdElement().modelObject().execute();

String gid=wdContext.currentResponseElement().getGid();

String address=wdContext.currentResponseElement().getAddress();

ArrayList al=new ArrayList();

al=(ArrayList)wdContext.currentResponseElement().getAl();

Iterator it=al.iterator();

objMessageManager.reportSuccess("Gid= "+gid);

objMessageManager.reportSuccess("Address= "+address);

while(it.hasNext())

{

objMessageManager.reportSuccess(" "+it.next());

}

} catch (Exception e)

{

objMessageManager.reportException("Exception in init() "+e,true);

}

Regards

LakshmiNarayanaChowdary.N

Former Member
0 Kudos

Hi,

Your entity looks fine.

This exception can occur because of many reasons.

1> Your server on which web-service is deployed is not running.

2> Exception thrown by the web-service implementation.

I can suggest you to check the web-service in the WS Navigator first.

There are lot of things which are not supported in WD like HashMap etc and Vector is also one of them.

thanks & regards,

Manoj

Former Member
0 Kudos

Hi Manoj,

Thank you for your quick response.

I have checked the webservice in navigator before going ahead for context mapping in Webdydpro..I'm able to retrieve the output in Navigator.

Could you please send me any related links on which Vector is not suported by WD.

It would be really helpful if you send me any scenario on which you have worked for fetching the list objects in WD.

Awaiting for your response.

Former Member
0 Kudos

Hi,

You got me wrong. Offcourse Vector and ArrayList are supported in WD. Its only not recognized with web-service(i.e with its return type and arguement). Even if you use primitive data type like boolean as an attribute for your entity class then also it will not reflect in your model.

Ya even i have faced a similar problem with the ArrayList. But later i changed it to String Array. I dont know if this change will match your requirement or not.

Manoj

Former Member
0 Kudos

Hi Vishali,

Can u please send the complete stack trace?? Its better if u can send the trace from the server log,otherwise its not possible to findout the exact problem.

regards

Sumit

Former Member
0 Kudos

Hi Vishali,

Remove your WS's and create with same name using "SimpleSOAP" as Default

Configuration Type.. I tried both, When I use "BasicAuth" It's raising Exception.

But if I use "SimpleSOAP" it's working fine. I think this is the problem u r facing

Regards

LakshmiNarayanaChowdary.N

Former Member
0 Kudos

Hi Manoj ,

Thank you for your response