Re: One service multiple access points

2008-06-26 Thread Supun Kamburugamuva
Hi Anis, Have you looked at the Math client and Service in the samples directory? Supun. On Tue, Jun 24, 2008 at 6:05 PM, Hello World [EMAIL PROTECTED] wrote: Hello, I'm actually trying to implement a service deployment platform (based on some research I'm doing about service protocols) on

org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF

2008-06-26 Thread Julian Noye
Hi Guys Has anybody had an exception org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF; was expecting a close tag for element values I think its caused by having a or similar in the content between tags. How can it be fixed, do I need CDATA or something similar

MTOM Problem with Axis2

2008-06-26 Thread Jochen Zink
Hello, I try to send an attachment with MTOM from a Client to a Server. I traced the Message with tcpmon and see, that the message contains base64 Date directly in the body and not as a xop:include link to an attachment. This happends with small attachments (34kb) and Big ons (22mb) both. On

Re: Axis2 return name

2008-06-26 Thread sumedha rubasinghe
AFAIK annotations is the only option for this. (i.e if your going through axis2). But you have the option of transforming the results from web service before it reaching your C program. For example you can transform following response, ns:queryResponse xmlns:ns=http://foo.bar; return

Re: MTOM Problem with Axis2

2008-06-26 Thread Jochen Zink
Okay, I found a bug: https://issues.apache.org/jira/browse/RAMPART-118 Is this only related to verison 1.4? I guess yes, while I have no xop include tag :( Regards Jochen Am Do 26.06.2008 09:23 schrieb Jochen Zink [EMAIL PROTECTED]: Hello, I try to send an attachment with MTOM from a

Re: java.lang.NullPointerException AbstractDispatcher.invoke

2008-06-26 Thread Mohan Radhakrishnan
Thanks Sanka. I will try that. I am going to use that patch with the final release build because the nightly build uses JDK 5 ? We use 1.4 [javac] bad class file: F:\tools\eclipse\src\web\WEB-INF\lib\axis 2-kernel-SNAPSHOT.jar(org/apache/axis2/AxisFault.class) [javac] class file has

Exceptions when using a Rampart client generated from stub classes.

2008-06-26 Thread Sanjay Vivek
Hi everyone, I've installed and configured Rampart 1.4 to work with the tutorial at http://wso2.org/library/3190 However, I'm having trouble getting the SOAP response from the service when generating a client using the stub classes. The SOAP request headers send by the client doesn't contain the

How to use HTTPConstants.REUSE_HTTP_CLIENT

2008-06-26 Thread Uno Masaki
Hi axis users, I'm creating SOAP client using Axis2 1.4 kernel. I'd like to to re-use HttpClient instance by setting HTTPContants.REUSE_HTTP_CLIENT of Options instance to true, like this. Options options = new Options(); optiosn.setProperty(HTTPContants.REUSE_HTTP_CLIENT, Boolean.TRUE);

Re: How to use HTTPConstants.REUSE_HTTP_CLIENT

2008-06-26 Thread Michele Mazzucco
Hi Masaki, what about the second response?, Did your client received it? I'm asking it because HttpClient 3 does not use pipelining and so the 3rd request will be sent only after receiving the 2nd response. Michele On 26 Jun 2008, at 09:30, Uno Masaki wrote: Hi axis users, I'm

Re: Axis2 Service stand-alone in Tomcat 5

2008-06-26 Thread Karl Heinz Marbaise
Hi Suran, thanks for helping... Try this http://localhost:8080/axis2/services/MyService?wsdl I have tried it but ...i didn't get it to call it... I have added the output of the Tomcat (catalina.out) file... So it seemed that the service is started well without problems nor there are any

Re: How to use HTTPConstants.REUSE_HTTP_CLIENT

2008-06-26 Thread Uno Masaki
Hi Michele, Thank you for quick reply. My client received 2nd response. My application always stalls at 3rd request. I forgot to show my environment. - JDK 5u15 - Axis2 1.4 - ran from Eclipse 3.3.2 Regards, Masaki --- Michele Mazzucco [EMAIL PROTECTED] wrote: Hi Masaki, what about the

Re: How to use HTTPConstants.REUSE_HTTP_CLIENT

2008-06-26 Thread Michele Mazzucco
OK, then try to call serviceClient.cleanupTransport() when just after sendReceive(). Michele On 26 Jun 2008, at 10:04, Uno Masaki wrote: Hi Michele, Thank you for quick reply. My client received 2nd response. My application always stalls at 3rd request. I forgot to show my environment.

Re: XSD inheritance (via extension) in WSDLs (top-down)

2008-06-26 Thread Amila Suriarachchi
On Thu, Jun 26, 2008 at 3:35 PM, Andrew Clegg [EMAIL PROTECTED] wrote: 2008/6/26 Amila Suriarachchi [EMAIL PROTECTED]: Here your request should be something like this soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:typ=http://ws.cathdb.info/Types;

WSDL2JAVA options (-nv) ?

2008-06-26 Thread callagc4
Hi, We have recently come across the following senario with our xsd schema: File 1 has namespace A File 2 has namespace B File 3 has namespace A File 1 imports File 2 imports File 3 This causes a validation exception. When using the com.sun.tools.xjc.XJCFacade directly this senarion fails

Re: How to use HTTPConstants.REUSE_HTTP_CLIENT

2008-06-26 Thread Michele Mazzucco
Masaki, I ran out of options, I haven't used Axis2 1.4 yet. Can you please try with Axis2 1.3? It might be helpful to post all the relevant client code (i.e. which options you set). Michele On 26 Jun 2008, at 11:15, Uno Masaki wrote: Hi Michele, I added

Re: Axis2 Service stand-alone in Tomcat 5

2008-06-26 Thread Karl Heinz Marbaise
Hi there, now i have found my problem there was an very important sentences: then rename the resultant war as axis2.war and drop it into any servlet engine. Once your servlet engine starts, you can view the wsdl for your service at: What I simply missed is to rename the created

Axis2 1.3 to Axis2 1.4

2008-06-26 Thread Fabien Couvert
Hi all, I try to upgrade Axis2 to 1.4 version but I get this exception when I try to createConfigurationContextFromFileSystem : Exception in thread main java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/resolver/URIResolver at

Rampart interaction with client/provider/STS

2008-06-26 Thread Tim Williams
So far the samples seem to explicitly (through API) retrieve a token from the STS. I'm wondering whether this can be done declaratively only by way of the policy. It seems that if I have a policy file exposed within a service's WSDL that states what STS that is acceptable, then the client

Ho to handle s:any/ in wsdl

2008-06-26 Thread Bartolomeo Nicolotti
Hi there! I've a wsdl for a web service that I've to consume with elements of this kind: s:element maxOccurs=1 minOccurs=0 name=Request s:complexType s:sequence s:any/ /s:sequence /s:complexType /s:element both in the

Re: Complex Types via REST with Axis2

2008-06-26 Thread Matthew Beldyk
Hi Keith, That does make sense, I couldn't determine how to even represent my complex type of complex types in a uri. This does explain the lack of documentation on how to do this. Thanks, -Matt On Wed, Jun 25, 2008 at 10:45 PM, keith chapman [EMAIL PROTECTED] wrote: Hi Matthew, You cannot

Re: XSD inheritance (via extension) in WSDLs (top-down)

2008-06-26 Thread Andrew Clegg
2008/6/26 Amila Suriarachchi [EMAIL PROTECTED]: By the way, in the process, I hit upon a case under XMLBeans where the response documents failed validation against the original WSDL. Should I post a test case that demonstrates this? Or is Axis2 with XMLBeans not guaranteed to produce

UUID generator in Axis2-1.3

2008-06-26 Thread Rajesh, Peter (CLAIMS, WIP)
Hi, How to generate and UUID? Below class is deprecated. org.apache.axis2.util.UUIDGenerator; Thanks Regards, Peter Rajesh * This communication, including attachments, is for the exclusive use of addressee and may

Re: Complex Types via REST with Axis2

2008-06-26 Thread keith chapman
Hi Mathew, Expect some articles on this stuff soon (Within the coming week or so). I'm in the process of publishing some articles on how to do REST with Axis2. Thanks for your interest. This also goes to show limitations in REST. Thanks, Keith. On Thu, Jun 26, 2008 at 6:36 PM, Matthew Beldyk

Re: Rampart interaction with client/provider/STS

2008-06-26 Thread Tim Williams
On Thu, Jun 26, 2008 at 8:35 AM, Tim Williams [EMAIL PROTECTED] wrote: So far the samples seem to explicitly (through API) retrieve a token from the STS. I'm wondering whether this can be done declaratively only by way of the policy. It seems that if I have a policy file exposed within a

Shipping Solution with UPS and FEDEX

2008-06-26 Thread Rahul Juneja
Has anyone Integrated UPS Shipping solution to their web system. If anyone has done that, can you tell me if they have some limit of packages which you need to ship before you can use their shipping solution. Also What are the complexities of using it as Fedex webservice integration is really

Re: UUID generator in Axis2-1.3

2008-06-26 Thread José Ferreiro
Hello, http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.html java.util.UUID a = UUID.randomUUID ( ) ; Hope this helps. José FERREIRO PS: UUID is the equivalent of GUID in dotnet On Thu, Jun 26, 2008 at 4:36 PM, Rajesh, Peter (CLAIMS, WIP) [EMAIL PROTECTED] wrote: Hi, How to

RE: Unable to generate EPR for transport : http

2008-06-26 Thread Attharkar, Asmita
Hi, Please find my services.xml in regards to the issue I am having service targetNamespace=http://NPCWebService.telcordia.com; schema schemaNamespace=http://NPCWebService.telcordia.com/xsd/ Description This is my first Web service. /Description parameter name=ServiceClass

Re: Axis2 1.3 to Axis2 1.4

2008-06-26 Thread sumedha rubasinghe
Hi, Do you have XmlSchema-1.4.2.jar in your classpath? /sumedha On Thu, Jun 26, 2008 at 5:46 PM, Fabien Couvert [EMAIL PROTECTED] wrote: Hi all, I try to upgrade Axis2 to 1.4 version but I get this exception when I try to createConfigurationContextFromFileSystem : Exception in thread main

RE: Unable to generate EPR for transport : http

2008-06-26 Thread Attharkar, Asmita
Hi Charitha, Please find my WSDL: - I have edited the location in the end with xxx.xx.172.79 wsdl:definitions targetNamespace=http://NPCWebService.telcordia.com; wsdl:documentation This is my first Web service. /wsdl:documentation − wsdl:types − xs:schema

Re: Unable to generate EPR for transport : http

2008-06-26 Thread Charitha Kankanamge
Can you please try to invoke your service by passing the endpoint url in the constructor of stub as follows. YourserviceStub stub = new YourserviceStub(http://[xxx.xx.172.79]:8080/axis2/services/NPCService.NPCServiceHttpSoap11Endpoint;) regards Charitha Attharkar, Asmita wrote: Hi

RE: Unable to generate EPR for transport : http

2008-06-26 Thread Attharkar, Asmita
Thanks a lot Charitha, I could make the call running with no issues. I have few questions though: Why cant I use the default constructor meaning YourserviceStub stub = new YourserviceStub(); Since the stub has this particular implementation in the default constructor? public YourserviceStub ()

WSDL2Java throws NullPointerException with out-only service.

2008-06-26 Thread David Ojeda
Hello, I have an out-only service (i.e. a service that doesn't receive a request element yet it returns a response element). I can generate my skeleton classes without problems with xmlbeans binding: wsdl2java.sh -o outputdir -d xmlbeans -ss -sd -g -uri wsdl/WSIterautoID.wsdl Using AXIS2_HOME:

DIME attachment error

2008-06-26 Thread ss shah
Hi All, We are getting following error in server when receiving a DIME attachment of size more than 1M from the client (client and server both are using Apache Axis 1.4) java.io.IOException: End of physical stream detected when 10 more bytes expected This happens only when client specially sets

Re: Rampart interaction with client/provider/STS

2008-06-26 Thread Nandana Mihindukulasooriya
On Thu, Jun 26, 2008 at 9:05 PM, Tim Williams [EMAIL PROTECTED] wrote: On Thu, Jun 26, 2008 at 8:35 AM, Tim Williams [EMAIL PROTECTED] wrote: So far the samples seem to explicitly (through API) retrieve a token from the STS. I'm wondering whether this can be done declaratively only by

Re: Unable to generate EPR for transport : http

2008-06-26 Thread keith chapman
The reason you have NPCServiceHttpSoap11Endpoint at the end of the EPR is to specify the endpoint this request is heading to. Ideally when u generate a stub for a service it will pick up the EPR from the WSDL. So just doing YourserviceStub stub = new YourserviceStub(); would send the request to

Re: Ho to handle s:any/ in wsdl

2008-06-26 Thread keith chapman
If you use Axis2 for the above case you dont need to edit your WSDL. In this case you can provide an OMElement as the request. This is the simplest way to create an OMElemet. String str = echoechoStringXML echo string/echoString/echo; StAXOMBuilder staxOMBuilder = new StAXOMBuilder(new

Re: How to use HTTPConstants.REUSE_HTTP_CLIENT

2008-06-26 Thread Uno Masaki
Hi Michele, I made simple service and client to make my problem clearer. My client code is attached to this e-mail. The HelloWorldService is web service created using JAX-WS and is running on GlassFish. As you see, I set endpoint, transportInProtocol and reuse_http_client to Options object. My