Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 91073 invoked from network); 6 Dec 2007 00:41:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Dec 2007 00:41:00 -0000 Received: (qmail 25180 invoked by uid 500); 6 Dec 2007 00:40:39 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 25155 invoked by uid 500); 6 Dec 2007 00:40:39 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 25144 invoked by uid 99); 6 Dec 2007 00:40:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 16:40:39 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [64.161.158.12] (HELO smtp.selectica.com) (64.161.158.12) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2007 00:40:36 +0000 Received: from sltcmsx.selectica.net ([10.0.12.245]) by smtp.selectica.com (8.12.8/8.12.8) with ESMTP id lB60eDMi027015 for ; Wed, 5 Dec 2007 16:40:13 -0800 Received: from sltcmsx.selectica.net ([10.0.12.245]) by sltcmsx.selectica.net ([10.0.12.245]) with mapi; Wed, 5 Dec 2007 16:40:13 -0800 From: "Pantvaidya, Vishwajit" To: "'axis-user@ws.apache.org'" Date: Wed, 5 Dec 2007 16:40:19 -0800 Subject: RE: [Axis2] "WstxEOFException: Unexpected EOF in prolog error" while calling .NET2.0 webservice from Axis2 webservice Thread-Topic: [Axis2] "WstxEOFException: Unexpected EOF in prolog error" while calling .NET2.0 webservice from Axis2 webservice Thread-Index: Acg2icKn6d294IXhQjeQVFWDUXF/5gAMNPfgADlRqrA= Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_A8CDAF70C43E5C47BAF859D660CEAD101BDFA7F6sltcmsxselectic_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_A8CDAF70C43E5C47BAF859D660CEAD101BDFA7F6sltcmsxselectic_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Did some monitoring using TCPMon and saw that axis2 was sending the request= as multipart. This particular .Net websvc call did not have any attachment= s and hence did not need to be send as multipart - I think the .Net side se= rvice was assuming it would not be multipart. I set MTOM to off in axis2.xm= l and that particular call worked. I will now try to turn MTOM back on in a= xis2.xml and try to see if I can set it on and off at the call level. - Vish. ________________________________ From: Pantvaidya, Vishwajit Sent: Tuesday, December 04, 2007 1:25 PM To: axis-user@ws.apache.org Subject: RE: [Axis2] "WstxEOFException: Unexpected EOF in prolog error" whi= le calling .NET2.0 webservice from Axis2 webservice Attaching the wsdl and aar and axis2.xml file for my axis2 service (ECMServ= iceSoap) and the wsdl for the .NET service (CPMPDFToWord.wsdl). I am runnin= g tomcat and have deployed the axis2 1.3 webapp in an exploded format. So m= y lib folder has axis2 1.3 xerces 2.8.1, xalan 2.7.0, wstx-asl-3.2.1.jar, x= ml-apis-1.3.03.jar among others. I am using jdk1.5.0. - Vish. ________________________________ From: Martin Gainty [mailto:mgainty@hotmail.com] Sent: Tuesday, December 04, 2007 7:23 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] "WstxEOFException: Unexpected EOF in prolog error" whi= le calling .NET2.0 webservice from Axis2 webservice Please post WSDL also please post location and version-number of your xml parsers such as xe= rces/jax M-- ----- Original Message ----- From: Pantvaidya, Vishwajit To: axis-user@ws.apache.org Sent: Monday, December 03, 2007 11:04 PM Subject: RE: [Axis2] "WstxEOFException: Unexpected EOF in prolog error" whi= le calling .NET2.0 webservice from Axis2 webservice I tried calling the .NET service with a coded Axis2 client that does not us= e the stub code I generated from the .NET wsdl earlier (code is enclosed at= end of this posting) - but I get same exception. However when I try callin= g the .NET service from some UI based client like SoapUI (that is independe= nt of axis) the call to the .NET service works. So I presume there is somet= hing wrong in the way in the way my client code is invoking the .NET servic= e. Tomorrow I will try seeing the messages with soapmonitor. String pingURL =3D "http://192.168.254.151/SCPMPDFToWord/Services/CPMPDFToW= ord.asmx"; Options options =3D new Options(); options.setTo(new EndpointReference(pingURL)); String methodName =3D "SetWorkingFolder"; String methodNameSpaceURI =3D "http://ws.selectica.com/ecm1/"; OMFactory fac =3D OMAbstractFactory.getOMFactory(); OMNamespace ns =3D fac.createOMNamespace(methodNameSpaceURI, "ns1"); OMElement payload =3D fac.createOMElement(methodName, ns); OMElement value =3D fac.createOMElement("ClientWorkingFolderOnServer", ns); value.addChild(fac.createOMText(value, clientWorkingFolderOnServer)); payload.addChild(value); ServiceClient client =3D new ServiceClient(); client.setOptions(options); OMElement result =3D client.sendReceive(payload); ________________________________ From: Pantvaidya, Vishwajit [mailto:vpantvai@selectica.com] Sent: Monday, December 03, 2007 6:09 PM To: axis-user@ws.apache.org Subject: [Axis2] "WstxEOFException: Unexpected EOF in prolog error" while c= alling .NET2.0 webservice from Axis2 webservice I am using Axis1.3 and have deployed an Axis2 webservice which calls a .NET= 2.0 webservice. I got the wsdl for the .NET service and used wsdl2java to g= enerate the client code (stub) for calling it. I am calling that stub from = my deployed axis2 service. This stub call returns the following exception: Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScann= er.java:661) at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReade= r.java:2134) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStream= Reader.java:2040) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.jav= a:1069) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBu= ilder.java:153) Any idea what this signifies? To me it seems like there is no reply from th= e .NET side. - Vish. --_000_A8CDAF70C43E5C47BAF859D660CEAD101BDFA7F6sltcmsxselectic_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Did some monitoring using TCPMon and s= aw that axis2 was sending the request as multipart. This particular .Net websv= c call did not have any attachments and hence did not need to be send as multipart – I think the .Net side service was assuming it would not b= e multipart. I set MTOM to off in axis2.xml and that particular call worked. = I will now try to turn MTOM back on in axis2.xml and try to see if I can set it on= and off at the call level.

 

 

- Vish.

 


From: Pantvaidya, Vishwajit
Sent: Tuesday, December 04, = 2007 1:25 PM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] "WstxEOFException: Unexpected EOF in prolog error" while calling .NET2.0 webservice from Axis2 webservice

 

Attaching the wsdl and aar and axis2.x= ml file for my axis2 service (ECMServiceSoap) and the wsdl for the .NET servic= e (CPMPDFToWord.wsdl). I am running tomcat and have deployed the axis2 1.3 we= bapp in an exploded format. So my lib folder has axis2 1.3 xerces 2.8.1, xalan 2.7.0, wstx-asl-3.2.1.jar, xml-apis-1.3.03.jar among others. I am using jdk1.5.0.

 

 

- Vish.

 


From: Martin G= ainty [mailto:mgainty@hotmail.com]
Sent: Tuesday, December 04, = 2007 7:23 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] "W= stxEOFException: Unexpected EOF in prolog error" while calling .NET2.0 webservice from Axis2 webservice

 

Please post WSDL
also please post location and version-number of your xml parsers such as xerces/jax

M--

----- Original Message -----

From:<= /font> <= a href=3D"mailto:vpantvai@selectica.com" title=3D"vpantvai@selectica.com">Pan= tvaidya, Vishwajit

Sent: Monday, De= cember 03, 2007 11:04 PM

Subject: RE: [Axis2= ] "WstxEOFException: Unexpected EOF in prolog error" while calling .NET2.0 webservice from Axis2 webservice

 

I tried calling the .NET service with = a coded Axis2 client that does not use the stub code I generated from the .NE= T wsdl earlier (code is enclosed at end of this posting) – but I get sa= me exception. However when I try calling the .NET service from some UI based client like SoapUI (that is independent of axis) the call to the .NET servi= ce works. So I presume there is something wrong in the way in the way my clien= t code is invoking the .NET service. Tomorrow I will try seeing the messages = with soapmonitor.

 

 

String pingURL =3D "http://192.168.254.151/SCPMPDFToWord/Services/CPMPDFToWord.asmx"= ;

Options options =3D new Options();

options.setTo(new EndpointReference(pi= ngURL));

 

String methodName =3D "SetWorkingFolder";

String methodNameSpaceURI =3D "http://ws.selectica.com/ecm1/";

OMFactory fac =3D OMAbstractFactory.getOMFactory();

OMNamespace ns =3D fac.createOMNamespace(methodNameSpaceURI, "ns1");

OMElement payload =3D fac.createOMElem= ent(methodName, ns);

    

OMElement value =3D fac.createOMElement("ClientWorkingFolderOnServer", ns);

value.addChild(fac.createOMText(value, clientWorkingFolderOnServer));

payload.addChild(value);

 

ServiceClient client =3D new ServiceClient();

client.setOptions(options);=

OMElement result =3D client.sendReceive(payload);

      &n= bsp;            = ;    

 


From: Pantvaidya, Vishwajit [mailto:vpantvai@selectica.com]
Sent: Monday, December 03, 2= 007 6:09 PM
To: axis-user@ws.apache.org
Subject: [Axis2] "WstxE= OFException: Unexpected EOF in prolog error" while calling .NET2.0 webservice from Axis2 webservice

 

I am using Axis1.3 and have deployed an Axis2 webservice which calls a .NET2.0 webservice. I got the wsdl for the .NET service and u= sed wsdl2java to generate the client code (stub) for calling it. I am calling t= hat stub from my deployed axis2 service. This stub call returns the following exception:

 

Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected= EOF in prolog

 at [row,col {unknown-source}]: [1,0]

         &n= bsp;  at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)=

         &n= bsp;  at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)=

         &n= bsp;  at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:= 2040)

         &n= bsp;  at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)=

         &n= bsp;  at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:1= 53)

 

Any idea what this signifies? To me it seems like there = is no reply from the .NET side.

 

 

- Vish.

--_000_A8CDAF70C43E5C47BAF859D660CEAD101BDFA7F6sltcmsxselectic_--