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.
Regards Sachin On 3/9/07, José Antonio Sánchez <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> wrote: > > > > What's the complete stack trace? > > > > > > > > Anyway, maybe the problem is here: > > > > > > > > java.lang.Object _resp = _call.invoke(new java.lang.Object [] > {input}); > > > > > > > > Could you put what input is? > > > > > > > > On 3/8/07, Sachin Sisodia <[EMAIL PROTECTED]> wrote: > > > > > 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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> 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.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 > > > > > > > > > > > > > > > > > > -- > > > > > > Saludos. > > > > > > José Antonio Sánchez > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: > > > > > [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Saludos. > > > > José Antonio Sánchez > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Saludos. > > José Antonio Sánchez > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- Saludos. José Antonio Sánchez --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]