Stray charac.NET and AXIS Interoperability issue

2005-05-23 Thread Krishnendu Kunti
Hi

I am trying to invoke a AXIS web service from a .NET platform. The
response comes fine but there are stray characters (some number) just
in front of SOAP envelope tag which is creates problem at the .NET
client. Can som one suggest why is this happening and how to prevnt
it.

I am including the response:

Thanks in advance.
Regards
Krish

Response from AXIS:
=

HTTP/1.1 100 ContinueHTTP/1.1 200 OKContent-Type:
text/xml;charset=utf-8Transfer-Encoding: chunkedDate: Tue, 24 May 2005
06:06:02 GMTServer: Apache-Coyote/1.1269
   http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
 http://w3.ibm.com/schemas/services/2002/11/15/stockquote";>

   IBM
   979012312
   
  678.0
  1116914762732
   
   
  678.0
  300.0
  true
   

 
  
   
0

Please note that there is a stray 0 at the end of SOAP envelope.
**

The request from .NET client
==

POST /axis/services/StockQuoteSOAPPort
HTTP/1.1VsDebuggerCausalityData:
AwAAADS3SUNichtGuljzJo6eoGAMCQAAFA8A3OkSAAB2AGUAcgBzAGkAbwBuAD0ANwAuADAAOwBhAHUAdABvAGEAdAB0AGEAYwBoAGMAbABzAGkAZAA9AHsANwAwAEYANgA1ADQAMQAxAC0ARgBFADgAQwAtADQAMgA0ADgALQBCAEMARgBGAC0ANwAwADEAQwA4AEIAMgBGADQANQAyADkAfQA7AHMAZQBzAHMAaQBvAG4APQB7AEQARAAyAEEAQgAyAEUARQAtADIAOAA4ADMALQA0ADAANwA2AC0AOQBFAEIAOAAtAEUAMAA3ADgANwAxADEARgBDAEEAQwA2AH0AUser-Agent:
Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol
1.1.4322.573)Content-Type: text/xml; charset=utf-8SOAPAction:
"getStockQuote"Content-Length: 362Expect: 100-continueConnection:
Keep-AliveHost: hydhtc27340
   http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  
 http://w3.ibm.com/schemas/services/2002/11/15/stockquote";>
IBM
 
  
   


The wsdl
=


http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl";
  xmlns:types="http://w3.ibm.com/schemas/services/2002/11/15/stockquote";
  xmlns="http://schemas.xmlsoap.org/wsdl/";
  xmlns:tns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
  xmlns:wsdl="ht

AXIS Castor newbe question

2005-05-19 Thread Krishnendu Kunti
Hi

I tried out the axis castor article by IBM
(http://www-106.ibm.com/developerworks/webservices/library/ws-castor/
). But when I tried to run wsdl2java on the wsdl below, I got the
error:

java.io.IOException: Element {http://w3.ibm.com/schemas/services/2002/11/15/stoc
kquote}getStockQuote is referenced but not defined.
at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
Table.java:527)
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:422
)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:408)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:393)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
at java.lang.Thread.run(Unknown Source)

C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\axis\WEB-INF\clas
ses\axisCastor>




I have tried changing the schemaLocation to local  directory and
setting the classpath accordingly but it still throws the same error.





I am including my wsdl and xsd file . Please help
Thanks in advance
Krish


wsdl file:
xx

http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl";
  xmlns="http://schemas.xmlsoap.org/wsdl/";
  xmlns:tns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
  xmlns:types="http://w3.ibm.com/schemas/services/2002/11/15/stockquote";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
   
 http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl/importtypes";>
  http://w3.ibm.com/schemas/services/2002/11/15/stockquote";
 schemaLocation="http://localhost:8080/StockQuote.xsd"; />
 
   
   
 
   
   
 
   
   

 
 

   
   
  http://schemas.xmlsoap.org/soap/http"; />
  
   
   

   
   

   
  
 
 
  
   http://localhost:8080/axis/services/StockQuoteService"; />
  
 


schema file:
xxx

http://w3.ibm.com/schemas/services/2002/11/15/stockquote";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote";>