Re: Axis2 client: how to get parameters before call operation

2006-05-09 Thread Wei Jiang
Robert,

Thank you for pointing out that my question was not clear. Now, I rephrase it:

I dynamically discover a WSDL (so, use stub is not a good option). I want
to dynamically find all operations and parameters defined in the WSDL. Then
I choose an operation, discover its parameters. Then pass data and invoke it.

For Axis 1, there is an example DynamicInvoker. It is a good example. I
followed
it, using SymbolTable, BindingEntry ... to do it.

But, for Axis2, I do not know how to do it.
I found AxisService.createClientSideAxisService(). But it require portName...

My question is: I get a WSDL dynamically. How to list all its operation names
and their parameters?

Any information would be appreciated. Thanks in advance.



--- robert lazarski <[EMAIL PROTECTED]> wrote:

> Could you try to rephrase your question? I'm not quite sure what you're
> tying to accomplish. If you have a wsdl, you'll have better luck basing your
> code on examples that do databinding. Take a look at the userguide
> databinding section, as it may help.
> 
> Robert
> http://www.braziloutsource.com/
> 
> On 5/9/06, Wei Jiang <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I have a WSDL. I would like to get parameter information of it then invoke
> > an
> > operation.
> > How to do it?
> >
> > All the client example programs (under userguide) do like:
> >
> > OMElement payload = ClientUtil.getEchoOMElement();
> > Options options = new Options();
> > options.setTo(targetEPR);
> >
> > //Blocking invocation
> > ServiceClient sender = new ServiceClient();
> > sender.setOptions(options);
> > OMElement result = sender.sendReceive(payload);
> >
> > The information of WSDL is passed to ServiceClient when it is invoked.
> > Is there a way to init ServerClient then get parameters before invoke?
> > Is there any examples?
> >
> > Any information would be appreciated. Thanks in advance.
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Axis2 client: how to get parameters before call operation

2006-05-09 Thread Wei Jiang
Hi,

I have a WSDL. I would like to get parameter information of it then invoke an
operation.
How to do it?

All the client example programs (under userguide) do like:

OMElement payload = ClientUtil.getEchoOMElement();
Options options = new Options();
options.setTo(targetEPR);

//Blocking invocation
ServiceClient sender = new ServiceClient();
sender.setOptions(options);
OMElement result = sender.sendReceive(payload);

The information of WSDL is passed to ServiceClient when it is invoked.
Is there a way to init ServerClient then get parameters before invoke?
Is there any examples?

Any information would be appreciated. Thanks in advance.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Sample UDDI data

2006-05-05 Thread Wei Jiang
Hi,

I am working on webservice and need a UDDI registry with sample data. 
Now, IBM, Microsoft and others have shutdown their registries.
There is a UDDI server with weblogic, but it is empty.

Is there any place I can download sample data?

Any information would be appreciated. Thanks in advance.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Axis client error

2006-04-14 Thread Wei Jiang
Hi,

I downloaded Axis 1.3 and tried samples.client.DynamicInvoker. 
There are three sample urls suggested. I run all of them, two of them 
were successfully. But I got error for the second one. What is the problem?

Any information would be appreciated. Thanks in advance.

>>

D:\axis\samples\client>java -cp %classpath%;d:\axis
samples.client.DynamicInvoker http://samples.got
dotnet.com/quickstart/aspplus/samples/services/MathService/VB/MathService.asmx?WSDL
Add 3 4
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1444)
at samples.client.DynamicInvoker.main(DynamicInvoker.java:107)
portname=null operationName=Add
Reading WSDL document from
'http://samples.gotdotnet.com/quickstart/aspplus/samples/services/MathSer
vice/VB/MathService.asmx?WSDL'
Exception in thread "main" org.xml.sax.SAXException: Fatal Error:
URI=http://samples.gotdotnet.com/q
uickstart/servererror.htm?aspxerrorpath=/quickstart/aspplus/samples/services/MathService/VB/MathServ
ice.asmx Line=32: Element type "window.parent.frames.length" must be followed
by either attribute sp
ecifications, ">" or "/>".
at
org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:723)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
 Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown
Source)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Thread.java:534)


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com