List Info

Thread: Problem to call web service through WSDL2Java




Problem to call web service through WSDL2Java
user name
2007-03-07 21:10:09
Hi All,
I am gettig the error message while trying to run the below code to call web service:

Code:
--------------------------------------------------
        org.apache.axis.client.Call
 _call = createCall();
        _call.setOperation(_operations[0]);
        _call.setUseSOAPAction(true);

       _call.setSOAPActionURI("");
        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
        _call.setOperationName(new javax.xml.namespace.QName("http://10.171.44.97/service", 
"testWS"));
	
        setRequestHeaders(_call);
        setAttachments(_call);
        System.out.println("before invoke");
	java.lang.Object _resp = _call.invoke(new java.lang.Object[] {input});


--------------------------------------------------------------------------


Error-


----------------------------------

org.xml.sax.SAXException: Error: URI=
null Line=3: Illegal
xml:lang value "".


----------------------------------

I would appreciate if anyone can help me out.

Thanks in advance.

Regards
Sachin
Re: Problem to call web service through WSDL2Java
user name
2007-03-08 02:03:32
Maybe this call is the problem.

_call.setSOAPActionURI("");

Try setting a valid URI instead of the empty one.

On 3/8/07, Sachin Sisodia <sachin.sisodiagmail.com> wrote:
>
> Hi All,
> I am gettig the error message while trying to run the
below code to call web
> service:
>
> Code:
> --------------------------------------------------
>  org.apache.axis.client.Call
>  _call = createCall();
>  _call.setOperation(_operations[0]);
>  _call.setUseSOAPAction(true);
>  _call.setSOAPActionURI("");
>
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP
11_CONSTANTS);
>  _call.setOperationName(new
> javax.xml.namespace.QName("http://10.171.44.97
/service",
> "testWS"));
>
>  setRequestHeaders(_call);
>  setAttachments(_call);
>  System.out.println("before invoke");
>  java.lang.Object _resp = _call.invoke(new
java.lang.Object[] );
>
>
>
>
------------------------------------------------------------
--------------
>
>
> Error-
>
>
> ----------------------------------
>
> org.xml.sax.SAXException: Error: URI=
> null Line=3: Illegal
> xml:lang value "".
>
>
>
> ----------------------------------
>
> I would appreciate if anyone can help me out.
>
> Thanks in advance.
>
> Regards
> Sachin


-- 
Saludos.
José Antonio Sánchez

------------------------------------------------------------
---------
To unsubscribe, e-mail: wsrf-user-unsubscribews.apache.org
For additional commands, e-mail: wsrf-user-helpws.apache.org


Re: Problem to call web service through WSDL2Java
user name
2007-03-08 04:04:40
Hi Jose,
Thanks for your response on this. I have tried with your suggestion and changed the statement as folllow:
  _call.setSOAPActionURI("http://localhost/service/testWS");
 
But still I am getting the same error message. I would appreciate for your help in this regard.
 
 
Regards
Sachin

 
On 3/8/07, José Antonio Sánchez < getaceresgmail.com">getaceresgmail.com> wrote:
Maybe this call is the problem.

_call.setSOAPActionURI("&quot;);

Try setting a valid URI instead of the empty one.

On 3/8/07, Sachin Sisodia < sachin.sisodiagmail.com">sachin.sisodiagmail.com> wrote:
>;
> Hi All,
> I am gettig the error message while trying to run the below code to call web
> service:
&gt;
> Code:
> --------------------------------------------------
>; &nbsp;org.apache.axis.client.Call
>; &nbsp;_call = createCall();
>&nbsp; _call.setOperation(_operations[0]);
 _call.setUseSOAPAction(true);
>&nbsp; _call.setSOAPActionURI("";);
> _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
&gt; &nbsp;_call.setOperationName(new
&gt; javax.xml.namespace.QName(" http://10.171.44.97/service&quot;,
> "testWS"));
>
>&nbsp; setRequestHeaders(_call);
>&nbsp; setAttachments(_call);
&gt; &nbsp;System.out.println("before invoke&quot;);
>&nbsp; java.lang.Object _resp = _call.invoke(new java.lang.Object[] );
>
>
&gt;
> --------------------------------------------------------------------------
&gt;
>
&gt; Error-
>;
>
> ----------------------------------
>
&gt; org.xml.sax.SAXException: Error: URI=
> null Line=3: Illegal
&gt; xml:lang value "&quot;.
>
&gt;
>
>; ----------------------------------
>
>; I would appreciate if anyone can help me out.
>;
> Thanks in advance.
&gt;
> Regards
&gt; Sachin


--
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: wsrf-user-unsubscribews.apache.org">wsrf-user-unsubscribews.apache.org
For additional commands, e-mail: wsrf-user-helpws.apache.org">wsrf-user-helpws.apache.org


Re: Problem to call web service through WSDL2Java
user name
2007-03-08 04:35:33
What's the complete stack trace?

Anyway, maybe the problem is here:

java.lang.Object _resp = _call.invoke(new java.lang.Object[]
);

Could you put what input is?

On 3/8/07, Sachin Sisodia <sachin.sisodiagmail.com> wrote:
> Hi Jose,
> Thanks for your response on this. I have tried with
your suggestion and
> changed the statement as folllow:
>   _call.setSOAPActionURI("http://localhos
t/service/testWS");
>
> But still I am getting the same error message. I would
appreciate for your
> help in this regard.
>
>
> Regards
> Sachin
>
>
> On 3/8/07, José Antonio Sánchez <getaceresgmail.com> wrote:
> >
> > Maybe this call is the problem.
> >
> > _call.setSOAPActionURI("");
> >
> > Try setting a valid URI instead of the empty one.
> >
> > On 3/8/07, Sachin Sisodia <sachin.sisodiagmail.com> wrote:
> > >
> > > Hi All,
> > > I am gettig the error message while trying to
run the below code to call
> web
> > > service:
> > >
> > > Code:
> > >
--------------------------------------------------
> > >  org.apache.axis.client.Call
> > >  _call = createCall();
> > >  _call.setOperation(_operations[0]);
> > >  _call.setUseSOAPAction(true);
> > >  _call.setSOAPActionURI("");
> > >
>
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP
11_CONSTANTS);
> > >  _call.setOperationName(new
> > > javax.xml.namespace.QName(" http://10.171.44.97
/service",
> > > "testWS"));
> > >
> > >  setRequestHeaders(_call);
> > >  setAttachments(_call);
> > >  System.out.println("before
invoke");
> > >  java.lang.Object _resp = _call.invoke(new
java.lang.Object[] );
> > >
> > >
> > >
> > >
>
------------------------------------------------------------
--------------
> > >
> > >
> > > Error-
> > >
> > >
> > > ----------------------------------
> > >
> > > org.xml.sax.SAXException: Error: URI=
> > > null Line=3: Illegal
> > > xml:lang value "".
> > >
> > >
> > >
> > > ----------------------------------
> > >
> > > I would appreciate if anyone can help me
out.
> > >
> > > Thanks in advance.
> > >
> > > Regards
> > > Sachin
> >
> >
> > --
> > Saludos.
> > José Antonio Sánchez
> >
> >
>
------------------------------------------------------------
---------
> > To unsubscribe, e-mail:
> wsrf-user-unsubscribews.apache.org
> > For additional commands, e-mail:
wsrf-user-helpws.apache.org
> >
> >
>
>


-- 
Saludos.
José Antonio Sánchez

------------------------------------------------------------
---------
To unsubscribe, e-mail: wsrf-user-unsubscribews.apache.org
For additional commands, e-mail: wsrf-user-helpws.apache.org


Re: Problem to call web service through WSDL2Java
user name
2007-03-08 20:28:54
Hi Jose,
Please find the attached WSDL file that I have generated for web service. I am invoking a service from webMethods and it is simple service&nbsp;for printing log file. Thanks for any help in this regard as I stuck ;in it from past 2 days.
&nbsp;
Regards
Sachin


&nbsp;
On 3/8/07, José Antonio Sánchez < getaceresgmail.com">getaceresgmail.com> wrote:
What's the complete stack trace?

Anyway, maybe the problem is here:

java.lang.Object _resp = _call.invoke(new java.lang.Object[] );

Could you put what input is?

On 3/8/07, Sachin Sisodia < sachin.sisodiagmail.com">sachin.sisodiagmail.com> wrote:
>; Hi Jose,
> Thanks for your response on this. I have tried with your suggestion and
> changed the statement as folllow:
&gt; &nbsp; _call.setSOAPActionURI("http://localhost/service/testWS");
&gt;
> But still I am getting the same error message. I would appreciate for your
>; help in this regard.
&gt;
>
>; Regards
&gt; Sachin
>;
>
> On 3/8/07, José Antonio Sánchez < getaceresgmail.com">getaceresgmail.com> wrote:
>; >
>; > Maybe this call is the problem.
&gt; >
> > _call.setSOAPActionURI("&quot;);
> >
> > Try setting a valid URI instead of the empty one.
> >
> > On 3/8/07, Sachin Sisodia < sachin.sisodiagmail.com">sachin.sisodiagmail.com> wrote:
>; > >
> > > Hi All,
> > > I am gettig the error message while trying to run the below code to call
> web
> > > service:
&gt; > >
> > > Code:
> > > --------------------------------------------------
>; > >  org.apache.axis.client.Call
> > >  _call = createCall();
> > >  _call.setOperation(_operations[0]);
&gt; > >  _call.setUseSOAPAction(true);
> > >  _call.setSOAPActionURI(&quot;");
> > >
> _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS );
> > >  _call.setOperationName(new
> > > javax.xml.namespace.QName(" http://10.171.44.97/service&quot;,
> > > "testWS"));
> > >
>; > >  setRequestHeaders(_call);
&gt; > >  setAttachments(_call);
> > >  System.out.println("before invoke&quot;);
> > >  java.lang.Object _resp = _call.invoke(new java.lang.Object [] );
> > >
> > >
> > >
> > >
> --------------------------------------------------------------------------
&gt; > >
> > >
> > > Error-
&gt; > >
> > >
> > > ----------------------------------
> > >
> > > org.xml.sax.SAXException: Error: URI=
> > > null Line=3: Illegal
&gt; > > xml:lang value "&quot;.
> > >
> > >
> > >
> > > ----------------------------------
> > >
> > > I would appreciate if anyone can help me out.
> > >
> > > Thanks in advance.
> > >
> > > Regards
&gt; > > Sachin
>; >
> >
> > --
> > Saludos.
&gt; > José Antonio Sánchez
&gt; >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
&gt; wsrf-user-unsubscribews.apache.org">wsrf-user-unsubscribews.apache.org
> > For additional commands, e-mail: wsrf-user-helpws.apache.org"> wsrf-user-helpws.apache.org
> >
> >
>
>


--
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: wsrf-user-unsubscribews.apache.org">wsrf-user-unsubscribews.apache.org
For additional commands, e-mail: wsrf-user-helpws.apache.org">wsrf-user-helpws.apache.org


  
Re: Problem to call web service through WSDL2Java
user name
2007-03-09 04:04:45
Sorry, I thought you were using WSRF because I have received
that
e-mail in that list and I didn't realize that the first time
I
received it from axis-user list, so I suppose you are using
Axis 1.X
here.
Just to be sure: You have created the wsdl file that you
sent me by
hand. It has one method that receives a string. With that
wsdl you
have created a skeleton service that you are implementing.
That
service gets a string as input and calls another service
with that
string (the 'input' variable that I requested before
contains that
string?).
I don't know exactly how your service is implemented and all
your code
but I suppose that in some parameter you pass to the Call
object it
may be a null object or an empty string so serialization of
the
request fails.

On 3/9/07, Sachin Sisodia <sachin.sisodiagmail.com> wrote:
> Hi Jose,
> Let me clear our requirement, We have webMethods
integration server with us
> and it is containing some inbuilt services. what we
need to do here to call
> these services from outside through web services.
>
> I have created WSDL file for the mentioned service.
That service is doing
> nothing just mapping input string variable to output
variable as shown
> below:
>
>
------------------------------------------------------------
------------------------------------------------------------
-
>
>
>
> // pipeline
> IDataCursor pipelineCursor = pipeline.getCursor();
>  String inputVariable = IDataUtil.getString(
pipelineCursor, "input" );
> pipelineCursor.destroy();
>
> // pipeline
> IDataCursor pipelineCursor_1 = pipeline.getCursor();
> IDataUtil.put( pipelineCursor_1, "output",
inputVariable );
> pipelineCursor_1.destroy();
>
------------------------------------------------------------
-----
>
> I am using help from WSDL2JAVA to acheive it but
getting the error in
> runtime.I am not sure what I need to do next.
>
>
> Regards
> Sachin
>
>
>
>
>
>
> On 3/9/07, José Antonio Sánchez <getaceresgmail.com> wrote:
> > You don't have any resource property document, so,
why are you using
> > WSRF? It's easier to use Axis or Axis2 to develop
simple services.
> > Also, if you are starting a new project, consider
using Muse2 instead
> > of Apache WSRF since it implements WSRF as well
and it's easier to use
> > and in more active development. Look for it in:
> >
> > http://ws.apache.org/muse
> >
> > For your problem, it's not a matter of the invoked
wsdl but I was
> > asking about your client code, specially what's in
the input variable.
> >
> > On 3/9/07, Sachin Sisodia < sachin.sisodiagmail.com> wrote:
> > > Hi Jose,
> > > Please find the attached WSDL file that I
have generated for web
> service. I
> > > am invoking a service from webMethods and it
is simple service for
> printing
> > > log file. Thanks for any help in this regard
as I stuck in it from past
> 2
> > > days.
> > >
> > >
> > > Regards
> > > Sachin
> > >
> > >
> > >
> > > On 3/8/07, José Antonio Sánchez <
getaceresgmail.com> wrote:
> > > > What's the complete stack trace?
> > > >
> > > > Anyway, maybe the problem is here:
> > > >
> > > > java.lang.Object _resp =
_call.invoke(new java.lang.Object []
> );
> > > >
> > > > Could you put what input is?
> > > >
> > > > On 3/8/07, Sachin Sisodia
<sachin.sisodiagmail.com> wrote:
> > > > > Hi Jose,
> > > > > Thanks for your response on this. I
have tried with your suggestion
> and
> > > > > changed the statement as folllow:
> > > > >   _call.setSOAPActionURI(" http://localhos
t/service/testWS");
> > > > >
> > > > > But still I am getting the same
error message. I would appreciate
> for
> > > your
> > > > > help in this regard.
> > > > >
> > > > >
> > > > > Regards
> > > > > Sachin
> > > > >
> > > > >
> > > > > On 3/8/07, José Antonio Sánchez
<getaceresgmail.com> wrote:
> > > > > >
> > > > > > Maybe this call is the
problem.
> > > > > >
> > > > > >
_call.setSOAPActionURI("");
> > > > > >
> > > > > > Try setting a valid URI
instead of the empty one.
> > > > > >
> > > > > > On 3/8/07, Sachin Sisodia <
sachin.sisodiagmail.com> wrote:
> > > > > > >
> > > > > > > Hi All,
> > > > > > > I am gettig the error
message while trying to run the below code
> to
> > > call
> > > > > web
> > > > > > > service:
> > > > > > >
> > > > > > > Code:
> > > > > > >
> --------------------------------------------------
> > > > > > > 
org.apache.axis.client.Call
> > > > > > >  _call = createCall();
> > > > > > > 
_call.setOperation(_operations[0]);
> > > > > > > 
_call.setUseSOAPAction(true);
> > > > > > > 
_call.setSOAPActionURI("");
> > > > > > >
> > > > >
> > >
>
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP
11_CONSTANTS
> > > );
> > > > > > > 
_call.setOperationName(new
> > > > > > >
javax.xml.namespace.QName(" http://10.171.44.97
/service",
> > > > > > > "testWS"));
> > > > > > >
> > > > > > > 
setRequestHeaders(_call);
> > > > > > >  setAttachments(_call);
> > > > > > > 
System.out.println("before invoke");
> > > > > > >   java.lang.Object _resp
= _call.invoke(new java.lang.Object []
> > > );
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
> > >
>
------------------------------------------------------------
--------------
> > > > > > >
> > > > > > >
> > > > > > > Error-
> > > > > > >
> > > > > > >
> > > > > > >
----------------------------------
> > > > > > >
> > > > > > > org.xml.sax.SAXException:
Error: URI=
> > > > > > > null Line=3: Illegal
> > > > > > > xml:lang value
"".
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
----------------------------------
> > > > > > >
> > > > > > > I would appreciate if
anyone can help me out.
> > > > > > >
> > > > > > > Thanks in advance.
> > > > > > >
> > > > > > > Regards
> > > > > > > Sachin
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Saludos.
> > > > > > José Antonio Sánchez
> > > > > >
> > > > > >
> > > > >
> > >
>
------------------------------------------------------------
---------
> > > > > > To unsubscribe, e-mail:
> > > > > wsrf-user-unsubscribews.apache.org
> > > > > > For additional commands,
e-mail: wsrf-user-helpws.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Saludos.
> > > > José Antonio Sánchez
> > > >
> > > >
> > >
>
------------------------------------------------------------
---------
> > > > To unsubscribe, e-mail:
> > > wsrf-user-unsubscribews.apache.org
> > > > For additional commands, e-mail:
wsrf-user-helpws.apache.org
> > > >
> > > >
> > >
> > >
> > >
>
------------------------------------------------------------
---------
> > > To unsubscribe, e-mail:
> wsrf-user-unsubscribews.apache.org
> > > For additional commands, e-mail:
wsrf-user-helpws.apache.org
> > >
> > >
> >
> >
> > --
> > Saludos.
> > José Antonio Sánchez
> >
> >
>
------------------------------------------------------------
---------
> > To unsubscribe, e-mail:
> wsrf-user-unsubscribews.apache.org
> > For additional commands, e-mail:
wsrf-user-helpws.apache.org
> >
> >
>
>


-- 
Saludos.
José Antonio Sánchez

------------------------------------------------------------
---------
To unsubscribe, e-mail: wsrf-user-unsubscribews.apache.org
For additional commands, e-mail: wsrf-user-helpws.apache.org


Re: Problem to call web service through WSDL2Java
user name
2007-03-09 02:16:41
You don't have any resource property document, so, why are
you using
WSRF? It's easier to use Axis or Axis2 to develop simple
services.
Also, if you are starting a new project, consider using
Muse2 instead
of Apache WSRF since it implements WSRF as well and it's
easier to use
and in more active development. Look for it in:

http://ws.apache.org/muse

For your problem, it's not a matter of the invoked wsdl but
I was
asking about your client code, specially what's in the input
variable.

On 3/9/07, Sachin Sisodia <sachin.sisodiagmail.com> wrote:
> Hi Jose,
> Please find the attached WSDL file that I have
generated for web service. I
> am invoking a service from webMethods and it is simple
service for printing
> log file. Thanks for any help in this regard as I stuck
in it from past 2
> days.
>
>
> Regards
> Sachin
>
>
>
> On 3/8/07, José Antonio Sánchez <getaceresgmail.com> wrote:
> > What's the complete stack trace?
> >
> > Anyway, maybe the problem is here:
> >
> > java.lang.Object _resp = _call.invoke(new
java.lang.Object[] );
> >
> > Could you put what input is?
> >
> > On 3/8/07, Sachin Sisodia <sachin.sisodiagmail.com> wrote:
> > > Hi Jose,
> > > Thanks for your response on this. I have
tried with your suggestion and
> > > changed the statement as folllow:
> > >   _call.setSOAPActionURI("http://localhos
t/service/testWS");
> > >
> > > But still I am getting the same error
message. I would appreciate for
> your
> > > help in this regard.
> > >
> > >
> > > Regards
> > > Sachin
> > >
> > >
> > > On 3/8/07, José Antonio Sánchez
<getaceresgmail.com> wrote:
> > > >
> > > > Maybe this call is the problem.
> > > >
> > > > _call.setSOAPActionURI("");
> > > >
> > > > Try setting a valid URI instead of the
empty one.
> > > >
> > > > On 3/8/07, Sachin Sisodia <
sachin.sisodiagmail.com> wrote:
> > > > >
> > > > > Hi All,
> > > > > I am gettig the error message while
trying to run the below code to
> call
> > > web
> > > > > service:
> > > > >
> > > > > Code:
> > > > >
--------------------------------------------------
> > > > >  org.apache.axis.client.Call
> > > > >  _call = createCall();
> > > > > 
_call.setOperation(_operations[0]);
> > > > >  _call.setUseSOAPAction(true);
> > > > > 
_call.setSOAPActionURI("");
> > > > >
> > >
>
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP
11_CONSTANTS
> );
> > > > >  _call.setOperationName(new
> > > > > javax.xml.namespace.QName(" http://10.171.44.97
/service",
> > > > > "testWS"));
> > > > >
> > > > >  setRequestHeaders(_call);
> > > > >  setAttachments(_call);
> > > > >  System.out.println("before
invoke");
> > > > >  java.lang.Object _resp =
_call.invoke(new java.lang.Object []
> );
> > > > >
> > > > >
> > > > >
> > > > >
> > >
>
------------------------------------------------------------
--------------
> > > > >
> > > > >
> > > > > Error-
> > > > >
> > > > >
> > > > > ----------------------------------
> > > > >
> > > > > org.xml.sax.SAXException: Error:
URI=
> > > > > null Line=3: Illegal
> > > > > xml:lang value "".
> > > > >
> > > > >
> > > > >
> > > > > ----------------------------------
> > > > >
> > > > > I would appreciate if anyone can
help me out.
> > > > >
> > > > > Thanks in advance.
> > > > >
> > > > > Regards
> > > > > Sachin
> > > >
> > > >
> > > > --
> > > > Saludos.
> > > > José Antonio Sánchez
> > > >
> > > >
> > >
>
------------------------------------------------------------
---------
> > > > To unsubscribe, e-mail:
> > > wsrf-user-unsubscribews.apache.org
> > > > For additional commands, e-mail:
wsrf-user-helpws.apache.org
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > Saludos.
> > José Antonio Sánchez
> >
> >
>
------------------------------------------------------------
---------
> > To unsubscribe, e-mail:
> wsrf-user-unsubscribews.apache.org
> > For additional commands, e-mail:
wsrf-user-helpws.apache.org
> >
> >
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: wsrf-user-unsubscribews.apache.org
> For additional commands, e-mail: wsrf-user-helpws.apache.org
>
>


-- 
Saludos.
José Antonio Sánchez

------------------------------------------------------------
---------
To unsubscribe, e-mail: wsrf-user-unsubscribews.apache.org
For additional commands, e-mail: wsrf-user-helpws.apache.org


Re: Problem to call web service through WSDL2Java
user name
2007-03-09 02:41:47
Hi Jose,
Let me clear our requirement, We have webMethods integration server with us and it is containing some inbuilt services.&nbsp;what we need to do here to call  these services from outside through web services.
 
I have created WSDL file for the mentioned service. That service is doing nothing just mapping&nbsp;input string variable to output variable as shown below:
 
-------------------------------------------------------------------------------------------------------------------------


// pipeline
IDataCursor pipelineCursor = pipeline.getCursor();
 String inputVariable = IDataUtil.getString( pipelineCursor, "input" );
pipelineCursor.destroy();

// pipeline
IDataCursor pipelineCursor_1 = pipeline.getCursor();
IDataUtil.put( pipelineCursor_1, "output", inputVariable );
pipelineCursor_1.destroy();

-----------------------------------------------------------------
 ;
I am using help from WSDL2JAVA to acheive it but getting the error in runtime.I am not sure what I need to do next.
&nbsp;
&nbsp;
Regards
Sachin
&nbsp;
 ;


&nbsp;
On 3/9/07, José Antonio Sánchez < getaceresgmail.com">getaceresgmail.com> wrote:
You don't have any resource property document, so, why are you using
WSRF? It's easier to use Axis or Axis2 to develop simple services.
Also, if you are starting a new project, consider using Muse2 instead
of Apache WSRF since it implements WSRF as well and it's easier to use
and in more active development. Look for it in:

http://ws.apache.org/muse

For your problem, it's not a matter of the invoked wsdl but I was
asking about your client code, specially what's in the input variable.

On 3/9/07, Sachin Sisodia < sachin.sisodiagmail.com">sachin.sisodiagmail.com> wrote:
>; Hi Jose,
> Please find the attached WSDL file that I have generated for web service. I
> am invoking a service from webMethods and it is simple service for printing
> log file. Thanks for any help in this regard as I stuck in it from past 2
> days.
>
>
> Regards
&gt; Sachin
>;
>
>
> On 3/8/07, José Antonio Sánchez < getaceresgmail.com"> getaceresgmail.com> wrote:
>; > What's the complete stack trace?
>; >
> > Anyway, maybe the problem is here:
> >
> > java.lang.Object _resp = _call.invoke(new java.lang.Object [] );
> >
> > Could you put what input is?
> >
> > On 3/8/07, Sachin Sisodia < sachin.sisodiagmail.com">sachin.sisodiagmail.com> wrote:
>; > > Hi Jose,
&gt; > > Thanks for your response on this. I have tried with your suggestion and
> > > changed the statement as folllow:
&gt; > >   _call.setSOAPActionURI(" http://localhost/service/testWS");
> > >
> > > But still I am getting the same error message. I would appreciate for
> your
> > > help in this regard.
&gt; > >
>; > >
> > > Regards
&gt; > > Sachin
>; > >
> > >
> > > On 3/8/07, José Antonio Sánchez < getaceresgmail.com">getaceresgmail.com> wrote:
&gt; > > >
> > > > Maybe this call is the problem.
&gt; > > >
> > > > _call.setSOAPActionURI("&quot;);
> > > >
> > > > Try setting a valid URI instead of the empty one.
>; > > >
> > > > On 3/8/07, Sachin Sisodia < sachin.sisodiagmail.com">sachin.sisodiagmail.com> wrote:
>; > > > >
> > > > > Hi All,
>; > > > > I am gettig the error message while trying to run the below code to
> call
> > > web
> > > > > service:
&gt; > > > >
> > > > > Code:
&gt; > > > > --------------------------------------------------
>; > > > >  org.apache.axis.client.Call
> > > > >  _call = createCall();
> > > > >  _call.setOperation(_operations[0]);
> > > > >  _call.setUseSOAPAction(true);
> > > > >  _call.setSOAPActionURI(&quot;");
> > > > >
> > >
> _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS
&gt; );
> > > > >  _call.setOperationName(new
> > > > > javax.xml.namespace.QName(" http://10.171.44.97/service&quot;,
> > > > > "testWS"));
> > > > >
> > > > >  setRequestHeaders(_call);
&gt; > > > >  setAttachments(_call);
> > > > >  System.out.println("before invoke&quot;);
> > > > >   java.lang.Object _resp = _call.invoke(new java.lang.Object []
> );
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> --------------------------------------------------------------------------
> > > > >
> > > > >
> > > > > Error-
>; > > > >
> > > > >
> > > > > ----------------------------------
> > > > >
>; > > > > org.xml.sax.SAXException: Error: URI=
> > > > > null Line=3: Illegal
&gt; > > > > xml:lang value "&quot;.
> > > > >
> > > > >
>; > > > >
> > > > > ----------------------------------
> > > > >
> > > > > I would appreciate if anyone can help me out.
> > > > >
>; > > > > Thanks in advance.
&gt; > > > >
> > > > > Regards
&gt; > > > > Sachin
>; > > >
> > > >
> > > > --
> > > > Saludos.
&gt; > > > José Antonio Sánchez
&gt; > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > wsrf-user-unsubscribews.apache.org">wsrf-user-unsubscribews.apache.org
> > > > For additional commands, e-mail: wsrf-user-helpws.apache.org">wsrf-user-helpws.apache.org
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > Saludos.
&gt; > José Antonio Sánchez
&gt; >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
&gt; wsrf-user-unsubscribews.apache.org">wsrf-user-unsubscribews.apache.org
> > For additional commands, e-mail: wsrf-user-helpws.apache.org"> wsrf-user-helpws.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wsrf-user-unsubscribews.apache.org"> wsrf-user-unsubscribews.apache.org
> For additional commands, e-mail: wsrf-user-helpws.apache.org">wsrf-user-helpws.apache.org
>
&gt;


--
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: wsrf-user-unsubscribews.apache.org">wsrf-user-unsubscribews.apache.org
For additional commands, e-mail: wsrf-user-helpws.apache.org">wsrf-user-helpws.apache.org


Re: Problem to call web service through WSDL2Java
user name
2007-03-12 21:39:22
Hi Jose,
That problem has been resolved after giving a "Anonymous" access to target service. Thanks for your response. I have posted one more problem where I am unable to pass stream value ; as an input. I would appreciate if you can response on that also. ;
&nbsp;
Regards
Sachin

 
On 3/9/07, José Antonio Sánchez < getaceresgmail.com">getaceresgmail.com> wrote:
Sorry, I thought you were using WSRF because I have received that
e-mail in that list and I didn't realize that the first time I
received it from axis-user list, so I suppose you are using Axis 1.X
here.
Just to be sure: You have created the wsdl file that you sent me by
hand. It has one method that receives a string. With that wsdl you
have created a skeleton service that you are implementing. That
service gets a string as input and calls another service with that
string (the 'input' variable that I requested before contains that
string?).
I don't know exactly how your service is implemented and all your code
but I suppose that in some parameter you pass to the Call object it
may be a null object or an empty string so serialization of the
request fails.

On 3/9/07, Sachin Sisodia < sachin.sisodiagmail.com">sachin.sisodiagmail.com> wrote:
>; Hi Jose,
> Let me clear our requirement, We have webMethods integration server with us
> and it is containing some inbuilt services. what we need to do here to call
> these services from outside through web services.
>
> I have created WSDL file for the mentioned service. That service is doing
&gt; nothing just mapping input string variable to output variable as shown
> below:
>;
> -------------------------------------------------------------------------------------------------------------------------
>
&gt;
>
>; // pipeline
&gt; IDataCursor pipelineCursor = pipeline.getCursor();
 String inputVariable = IDataUtil.getString( pipelineCursor, "input" );
> pipelineCursor.destroy ();
>
> // pipeline
&gt; IDataCursor pipelineCursor_1 = pipeline.getCursor();
> IDataUtil.put( pipelineCursor_1, "output", inputVariable );
> pipelineCursor_1.destroy();
> -----------------------------------------------------------------
>
>; I am using help from WSDL2JAVA to acheive it but getting the error in
> runtime.I am not sure what I need to do next.
>
>
> Regards
&gt; Sachin
>;
>
>
>
>;
>
> On 3/9/07, José Antonio Sánchez < getaceresgmail.com">getaceresgmail.com> wrote:
>; > You don't have any resource property document, so, why are you using
> > WSRF? It's easier to use Axis or Axis2 to develop simple services.
> > Also, if you are starting a new project, consider using Muse2 instead
&gt; > of Apache WSRF since it implements WSRF as well and it's easier to use
> > and in more active development. Look for it in:
> >
> > http://ws.apache.org/muse
> >
> > For your problem, it's not a matter of the invoked wsdl but I was
> > asking about your client code, specially what's in the input variable.
> >
> > On 3/9/07, Sachin Sisodia < sachin.sisodiagmail.com">sachin.sisodiagmail.com> wrote:
>; > > Hi Jose,
> > > Please find the attached WSDL file that I have generated for web
> service. I
> > > am invoking a service from webMethods and it is simple service for
> printing
&gt; > > log file. Thanks for any help in this regard as I stuck in it from past
> 2
> > > days.
> > >
> > >
> > > Regards
&gt; > > Sachin
>; > >
> > >
> > >
> > > On 3/8/07, José Antonio Sánchez < getaceresgmail.com">getaceresgmail.com> wrote:
>; > > > What's the complete stack trace?
>; > > >
> > > > Anyway, maybe the problem is here:
> > > >
>; > > > java.lang.Object _resp = _call.invoke(new java.lang.Object []
> );
> > > >
> > > > Could you put what input is?
> > > >
> > > > On 3/8/07, Sachin Sisodia < sachin.sisodiagmail.com">sachin.sisodiagmail.com> wrote:
>; > > > > Hi Jose,
> > > > > Thanks for your response on this. I have tried with your suggestion
> and
> > > > > changed the statement as folllow:
&gt; > > > >   _call.setSOAPActionURI(" http://localhost/service/testWS");
&gt; > > > >
>; > > > > But still I am getting the same error message. I would appreciate
> for
> > > your
> > > > > help in this regard.
&gt; > > > >
> > > > >
>; > > > > Regards
&gt; > > > > Sachin
>; > > > >
> > > > >
> > > > > On 3/8/07, José Antonio Sánchez < getaceresgmail.com"> getaceresgmail.com> wrote:
>; > > > > >
> > > > > > Maybe this call is the problem.
&gt; > > > > >
> > > > > > _call.setSOAPActionURI("&quot;);
>; > > > > >
> > > > > > Try setting a valid URI instead of the empty one.
> > > > > >
> > > > > > On 3/8/07, Sachin Sisodia < sachin.sisodiagmail.com"> sachin.sisodiagmail.com> wrote:
>; > > > > > >
> > > > > > > Hi All,
> > > > > > > I am gettig the error message while trying to run the below code
>; to
> > > call
> > > > > web
> > > > > > > service:
&gt; > > > > > >
> > > > > > > Code:
> > > > > > >
>; --------------------------------------------------
>; > > > > > >  org.apache.axis.client.Call
> > > > > > >  _call = createCall();
> > > > > > >  _call.setOperation(_operations[0]);
> > > > > > >  _call.setUseSOAPAction(true);
> > > > > > >  _call.setSOAPActionURI(&quot;");
> > > > > > >
> > > > >
> > >
>; _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS
>; > > );
> > > > > > >  _call.setOperationName(new
> > > > > > > javax.xml.namespace.QName (&quot; http://10.171.44.97/service&quot;,
> > > > > > > "testWS"));
> > > > > > >
> > > > > > >  setRequestHeaders(_call);
> > > > > > >  setAttachments(_call);
> > > > > > >  System.out.println("before invoke&quot;);
> > > > > > >   java.lang.Object _resp = _call.invoke(new java.lang.Object []
> > > );
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
>; > >
> --------------------------------------------------------------------------
&gt; > > > > > >
> > > > > > >
> > > > > > > Error-
&gt; > > > > > >
> > > > > > >
> > > > > > > ----------------------------------
> > > > > > >
> > > > > > > org.xml.sax.SAXException: Error: URI=
> > > > > > > null Line=3: Illegal
&gt; > > > > > > xml:lang value "&quot;.
> > > > > > >
> > > > > > >
>; > > > > > >
> > > > > > > ----------------------------------
> > > > > > >
> > > > > > > I would appreciate if anyone can help me out.
>; > > > > > >
> > > > > > > Thanks in advance.
&gt; > > > > > >
> > > > > > > Regards
&gt; > > > > > > Sachin
&gt; > > > > >
> > > > > >
> > > > > > --
> > > > > > Saludos.
&gt; > > > > > José Antonio Sánchez
&gt; > > > > >
>; > > > > >
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
&gt; > > > > wsrf-user-unsubscribews.apache.org">wsrf-user-unsubscribews.apache.org
> > > > > > For additional commands, e-mail: wsrf-user-helpws.apache.org">wsrf-user-helpws.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Saludos.
> > > > José Antonio Sánchez
&gt; > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > wsrf-user-unsubscribews.apache.org">wsrf-user-unsubscribews.apache.org
> > > > For additional commands, e-mail: wsrf-user-helpws.apache.org">wsrf-user-helpws.apache.org
> > > >
> > > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> wsrf-user-unsubscribews.apache.org">wsrf-user-unsubscribews.apache.org
> > > For additional commands, e-mail: wsrf-user-helpws.apache.org">wsrf-user-helpws.apache.org
> > >
> > >
> >
> >
> > --
> > Saludos.
&gt; > José Antonio Sánchez
&gt; >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
&gt; wsrf-user-unsubscribews.apache.org">wsrf-user-unsubscribews.apache.org
> > For additional commands, e-mail: wsrf-user-helpws.apache.org"> wsrf-user-helpws.apache.org
> >
> >
>
>


--
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: wsrf-user-unsubscribews.apache.org">wsrf-user-unsubscribews.apache.org
For additional commands, e-mail: wsrf-user-helpws.apache.org">wsrf-user-helpws.apache.org


[1-9]

about | contact  Other archives ( Real Estate discussion Medical topics )