Re: useOriginalWsdl generates error when set to true.

2008-04-25 Thread Linus Kamb
Hi, I have a similar problem, but with a slight twist. (cc'ing jibx list in case it's related.) normal wsdl2java generation produces services.xml with useOriginalwsdl=true. The service runs fine, but it produces the "Unable to generate WSDL 1.1 for this service" error when hitting the ?wsdl

Re: Axis1 posting request as attachment? - SOLVED

2008-01-30 Thread Linus Kamb
In case anyone cares, I solved this (and my earlier post about client blocking in socketWrite() ) by getting a new reference to the service through the ServiceLocator. Maybe that's the way you're supposed to do it and I missed that part... Linus Kamb wrote: Why would Axis1 post a

Axis1 posting request as attachment?

2008-01-30 Thread Linus Kamb
Why would Axis1 post a request as an attachment? My service returns documents as attachments. The first request goes out as a normally-formatted soap request. Subsequent requests, however, put the soap message in to an attachment, as follows. Also, it appears to be attaching the prior respon

Axis1 client blocks in socketWrite0

2008-01-29 Thread Linus Kamb
I am invoking an Axis1 service from within another (separate machine) Axis2 service. The Axis1 service is returning documents as attachments using swa. It all goes basically fine up to a point when the client (Axis2 service calling through Axis1-generated stubs) hangs. The Axis1 server logs

Re: EPR...Endpoint Reference

2007-10-01 Thread Linus Kamb
- > Date: Tue, 25 Sep 2007 12:11:58 -0500 > From: [EMAIL PROTECTED] > To: axis-user@ws.apache.org > Subject: Re: EPR...Endpoint Reference > > The Exception says that you do not have a service defined for "Random". >

Re: EPR...Endpoint Reference

2007-09-25 Thread Linus Kamb
Not sure if this is your trouble, but I had similar troubles. Look at: http://marc.info/?l=axis-user&m=118954790931434&w=2 use TCPMON to see what your http headers look like (as well as the SOAP message.) Linus Nasreen Laghari wrote: Hi Why EPR operation is not found? Exception: The

Re: EPR for the Operation not found - SOLVED

2007-09-11 Thread Linus Kamb
can just get fitnesse to do the same Linus Kamb wrote: I know this has been discussed before, but I'm stumped. I have a service running, and I can contact it no problem using a stand-alone java client that uses the axis-generated stubs. However, if I run fitnesse tests, they get an

Re: Problem generating JiBX client for existing Web service

2007-09-11 Thread Linus Kamb
perhaps a better place to start is on the axis pages: http://ws.apache.org/axis2/1_3/jibx/jibx-codegen-integration.html there are versions for each release, I believe. Linus Kamb wrote: Wes, You need to provide a jibx binding file that maps the xml to the java objects. See http

Re: Problem generating JiBX client for existing Web service

2007-09-11 Thread Linus Kamb
Wes, You need to provide a jibx binding file that maps the xml to the java objects. See http://www.jibx.org for details. my wsdl2java ant target looks like this:

Re: EPR for the Operation not found

2007-09-11 Thread Linus Kamb
so, apparently addressing module was turned on in webapps/axis2/WEB-INF/conf/axis2.xml. Commented out that line, restarted, and I get the same EPR not found error... Linus Kamb wrote: Deepal, Thanks for the response. However, this is a SOAP invocation, not a REST-style invocation. The

Re: EPR for the Operation not found

2007-09-11 Thread Linus Kamb
rvice called "MyService" with a method add as shown below ; public class MyService { public int add(int a , int b){ } } then your request should be something like below; http://localhost:8080/axis2/services/MyService/add?a=10&b=15 Thanks Deepal Linus Kamb wrote: I know this

EPR for the Operation not found

2007-09-10 Thread Linus Kamb
I know this has been discussed before, but I'm stumped. I have a service running, and I can contact it no problem using a stand-alone java client that uses the axis-generated stubs. However, if I run fitnesse tests, they get an error: The endpoint reference (EPR) for the Operation not found is

Re: WSDLException : OTHER_ERROR: Unable to locate with a locator the schema referenced at ...

2007-09-06 Thread Linus Kamb
Thanks so much for responding. I will enter a Jira issue. thanks, Linus Amila Suriarachchi wrote: On 9/5/07, *Linus Kamb* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: So, am I doing something wrong? Or is this a bug? Axis2 supports xsd file if they are direct

Re: WSDLException : OTHER_ERROR: Unable to locate with a locator the schema referenced at ...

2007-09-05 Thread Linus Kamb
So, am I doing something wrong? Or is this a bug? Thanks, Linus Linus Kamb wrote: Thanks a lot for looking. wsdl2java seems to run successfully: ant target is

Re: WSDLException : OTHER_ERROR: Unable to locate with a locator the schema referenced at ...

2007-08-31 Thread Linus Kamb
Linus Kamb wrote: I wonder, should those various downloaded xsd's be packaged in the aar? Seems not right to me, if that's the case. I can try that, but where should they go? Well, naively just putting them into META-INF in the aar did not work. There was a thread earlier

Re: WSDLException : OTHER_ERROR: Unable to locate with a locator the schema referenced at ...

2007-08-31 Thread Linus Kamb
sd w2j//resources/xsd9.xsd w2j//src w2j//src/edu w2j//src/edu/iris w2j//src/edu/iris/ws w2j//src/edu/iris/ws/esdp w2j//src/edu/iris/ws/esdp/ESPortalCDIMessageReceiverInOut.java w2j//src/edu/iris/ws/esdp/ESPortalCDISkeleton.java w2j//src/edu/iris/ws/esdp/ESPortalCDISkeletonInterface.java I wonder, sh

WSDLException : OTHER_ERROR: Unable to locate with a locator the schema referenced at ...

2007-08-30 Thread Linus Kamb
I am running Axis2 1.3 on Tomcat 5.5.23 on Mac OSX. I get the following in catalina.out: [INFO] AARBasedWSDLLocator: Unable to resolve http://schemas.opengis.net/gml/3.1.1/base/geometryAggregates.xsd [INFO] Trouble processing wsdl file :WSDLException (at /wsdl:definitions/wsdl:types/schema/xs:

Importing external schema in WSDL

2007-08-20 Thread Linus Kamb
I know this has been a topic several times before, but I don't see as it's fixed. I am using axis2 1.2 in Tomcat 5.5.23 on MacOSX 10.4.10. I have a WSDL schema, which imports a schema, which imports a schema, which imports many schemas After the first import, the schemas use relative URL

Re: OutOfMemoryError when submitting large SOAP requests to Axis

2006-02-03 Thread Linus Kamb
Hi, Jared. Your service is using rpc/encoded. The identifying parts of the wsdl are: http://schemas.xmlsoap.org/soap/http"/> ^ http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://webservices.

Re: OutOfMemoryError when submitting large SOAP requests to Axis

2006-02-02 Thread Linus Kamb
OAPMonitor, the OOM's start to occur. I attached a debug log snippet to the initial message in this thread. Also, what do you mean by "doc/lit wrapped"? cheers, - Jared On 2/2/06, Linus Kamb <[EMAIL PROTECTED]> wrote: What "style" of web service are yo

Re: OutOfMemoryError when submitting large SOAP requests to Axis

2006-02-02 Thread Linus Kamb
What "style" of web service are you using? I have successfully sent attachments of > 200MB using doc/lit wrapped, and I'm sure I could send larger ones. The trouble I run into is when I try to parse the attachments (they are XML,) but that is outside of Axis/SOAP. Jared Klett wrote: gree

Re: WSDL, INOUT parameters and returned attachments

2005-09-13 Thread Linus Kamb
I haven't found a definitive answer to this, but it appears that INOUT parameters are not supported in doc/lit style. (And furthermore, they are considered bad for interoperability.) Linus Kamb wrote: I am trying to craft WSDL for a service that will take an in-out parameter and retu

WSDL, INOUT parameters and returned attachments

2005-09-13 Thread Linus Kamb
I am trying to craft WSDL for a service that will take an in-out parameter and return an array of attachments. I have been poking around examples, docs, and the WSDL spec, and I am close, but am still having some troubles. The method signature I would like: DataHandler[] returns getProducts

Re: How to collect a SOAP Message

2005-09-09 Thread Linus Kamb
Do you really need the SOAP Body, or do you just want a way to send arbitrary XML documents? You can do the latter by having a doc/lit(wrapped) service that takes xsd:anyType (or apachesoap:Element if you don't care about interoperability). That produces a service interface method signature o

Re: Get IP address of axis webservice clients?

2005-08-11 Thread Linus Kamb
Don't know if this is standard or even works in all cases (like when using proxy, or whatnot,) but I do: MessageContext ctxt = MessageContext.getCurrentContext(); logger.debug("ctxt: " + ctxt ); logger.debug( "transport:" + ctxt.getTransportName()); javax.servlet.ServletRequest request = (javax.

Re: client-config mystery - or - why would my client be loading my server class?

2005-08-08 Thread Linus Kamb
Turns out that the client-config.wsdd was being read (I'm sure no-one is surprised by that) but that the was in the wrong place in the file... Why the client was loading server side codes, I still have no idea. Linus Kamb wrote: I seem to be having some trouble getting my client to notic

client-config mystery - or - why would my client be loading my server class?

2005-08-08 Thread Linus Kamb
I seem to be having some trouble getting my client to notice and read my client-config.wsdd file that has a required type mapping. I have the file available in the current working directory, and also in the root of the classes build tree and in the package classes directory. Here is the myste

wsdl2java and typeMappings

2005-07-21 Thread Linus Kamb
Is there any way I can get wsdl2java to automatically generate the wsdd typeMapping for xsd:anyType -> org.w3c.dom.Element ? Otherwise, I have to hand-edit the wsdd every time I run wsdl2java. Thanks, Linus

Re: NullPointerException sending array of org.w3c.dom.Elements in 1.2.1

2005-07-19 Thread Linus Kamb
pe mapping when using the *Stub, but I haven't figured it out yet. (It is quite possibly right in front of my eyes...) Thanks, Linus Anne Thomas Manes wrote: Linus, Try changing your apachesoap:Element type to xsd:anyType, and then define a mapping for anyType to a DOM Element. Anne On

Re: wsdl2java not producing array wrappers

2005-07-18 Thread Linus Kamb
4) Thanks, Linus [EMAIL PROTECTED] wrote: Linus, Why do you want the array wrapper? You may need to use a different doc type, what type are you using? -Original Message----- From: Linus Kamb [mailto:[EMAIL PROTECTED] Sent: Friday, July 15, 2005 3:54 PM To: axis-user@ws.apache.org Subject:

Re: NullPointer in org.apache.axis.utils.ArrayUtil.getArrayComponentPD(ArrayUtil.java:153)

2005-07-18 Thread Linus Kamb
I'm sorry. Forgot to restate the problem: I get a NullPointerException in ArrayUtils when I try to return an array of org.w3.dom.Elements. Linus Kamb wrote: Ok, I'm at a bit of a loss here. I've tried to reduce this to the most basic test, and I still get the NPE down in

NullPointer in org.apache.axis.utils.ArrayUtil.getArrayComponentPD(ArrayUtil.java:153)

2005-07-18 Thread Linus Kamb
Ok, I'm at a bit of a loss here. I've tried to reduce this to the most basic test, and I still get the NPE down in axis.utils. I am hoping somebody can give me a clue as to why this might be happening. It is likely user-error, but I'm at a loss. I have reinstalled 1.2.1. I have reinstalled

wsdl2java not producing array wrappers

2005-07-15 Thread Linus Kamb
I am trying to pass arrays of things using wrapper elements (ArrayOf). However, I cannot get java2wsdl (called via the axis-wsdl2java ant task) to generate the wrapper element for arrays of xsd:strings or org.w3c.dom.Element (apachesoap:Element) objects. It produces wrappers for other complex

NullPointerException sending array of org.w3c.dom.Elements in 1.2.1

2005-07-14 Thread Linus Kamb
I get the exception dump below when trying to return an array of org.w3c.dom.Elements. The XML is fine. The method returns fine. Is it an error to try to send or return Element[] in doc/lit wrapped? I can send the very same XML to the server as doc lit wrapped no problem. It seems to be a pr

Re: only 1 of multiple attachments showing up

2005-06-20 Thread Linus Kamb
Now using 1.2.1 and all is well. The returned array of DataHandlers is now as long as expected. Linus Kamb wrote: I have a web service that is to return binary data as attachments. Using Doc/Lit/wrapped. The interface looks like DataHandler[] getWaveformAttach(WaveformAttachQuery qry

Re: Fwd: deploy trouble

2005-06-06 Thread Linus Kamb
Running on Tomcat, I have to reload axis. Interestingly, in a "fresh" axis install in tomcat, I always have to: deploy reload_axis deploy before the service appears in the list. James Taylor wrote: Hi there, I'm trying to deploy a service to axis using the admin client and is not lis

Re: only 1 of multiple attachments showing up

2005-06-03 Thread Linus Kamb
anyone successfully done this and therefore I must be doing something wrong? OR 2) this is not a reasonable way to do this and I should use the Message.getAttachments() approach OR some other approach to returning multiple attachmens. Linus Kamb wrote: I have a web service that is to return

Re: only 1 of multiple attachments showing up - Using 1.2 final breaks completely

2005-06-01 Thread Linus Kamb
ava:2402) at org.apache.axis.client.Call.invoke(Call.java:2301) at org.apache.axis.client.Call.invoke(Call.java:1758) at edu.iris.dmc.dhiWS.Dhi_webserviceBindingStub.getWaveformAttach(Dhi_webserviceBindingStub.java:336) at edu.iris.dmc.dhiWS.DataPnl.getDataBtnActionPerformed(DataPnl.jav

only 1 of multiple attachments showing up

2005-06-01 Thread Linus Kamb
I have a web service that is to return binary data as attachments. Using Doc/Lit/wrapped. The interface looks like DataHandler[] getWaveformAttach(WaveformAttachQuery qry); The server appears to be properly packaging up the multiple attachments and returning them. On the client side, the Dat