on 09-19-2007 5:24 AM
Hello Everybody,
I am facing a problem. I have a xMII transaction and exposed as webservice. In java Web Dynpro I have consumed it in two ways.
1. Import Adaptive Web Service Model
2. Import Web Service Model - DEPRECATED
The model which I have created using 2nd one is working properly but the 1st one is not working.
One more query:
When I create the model using 2nd option then with the model it creates a Logical port but the other way it doesn't.
Please help me out.
Thanks and regards,
Pradip
Hi,
I think this problem is due to accesssing the webservice in a lower version (2004) to the 2004s.so that it is properly working when you import it as depricated.To use it as a Adaptive webservice model you should give the user name and password.
Use the following sample code in the method created in cusotm controller
public void executeRequest_ConcatViDocument_concatmethod( )
{
//@@begin executeRequest_ConcatViDocument_concatmethod()
//$$begin Relate Context Attributes(-1470403384)
wdContext.currentRequest_ConcatViDocument_concatmethodElement().modelObject()._setUser("<username to access webserive in server>");
wdContext.currentRequest_ConcatViDocument_concatmethodElement().modelObject()._setPassword("pwd");
IPrivateConcustm.IConcatinElement concatinElement = wdContext.currentConcatinElement();
IPrivateConcustm.IRequest_ConcatViDocument_concatmethodElement request_ConcatViDocument_concatmethodElement = wdContext.currentRequest_ConcatViDocument_concatmethodElement();
// if ((concatinElement != null) && (request_ConcatViDocument_concatmethodElement != null)) {
request_ConcatViDocument_concatmethodElement.setString1(wdContext.currentConcatinElement().getFststr());
request_ConcatViDocument_concatmethodElement.setString2(wdContext.currentConcatinElement().getSndstr());
// }
//$$end
//$$begin Service Controller(-667725164)
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
{
wdContext.currentRequest_ConcatViDocument_concatmethodElement().modelObject().execute();
wdContext.nodeRequest_ConcatViDocument_concatmethod_Response().invalidate();
}
catch(Exception e)
{
manager.reportException(e.getMessage(), false);
}
//$$end
//$$begin Relate Context Attributes(1565609543)
IPrivateConcustm.IConcatoutElement concatoutElement = wdContext.currentConcatoutElement();
IPrivateConcustm.IRequest_ConcatViDocument_concatmethod_ResponseElement request_ConcatViDocument_concatmethod_ResponseElement = wdContext.currentRequest_ConcatViDocument_concatmethod_ResponseElement();
// if ((concatoutElement != null) && (request_ConcatViDocument_concatmethod_ResponseElement != null)) {
// request_ConcatViDocument_concatmethod_ResponseElement.setResult(concatoutElement.getConstr());
// }
String ccnt=wdContext.currentRequest_ConcatViDocument_concatmethod_ResponseElement().getResult();
wdContext.currentConcatoutElement().setConstr(ccnt);
//$$end
//@@end
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This problem is resolved and you can get the detail
Thanks to all of you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.