You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sloan Seaman <sl...@sgi.net> on 2003/02/13 22:17:40 UTC
Unanswered questions
I've asked the following question four different ways and still no response
(I'm getting a ghost town feeling about this).
I need to get this issue resolved in the next two days or give up on using
Axis.
Here is my issue:
I am using Axis to query a service that it outside of my control.
The quering goes fine and the service returns some XML.
The XML is not formatted properly though.
Axis blows up on it (child element found error).
I need to find a way to manipulate the XML (i.e. fix it) so that Axis
doesn't blow up on it.
I'm guessing that I need to put my own object in a handler chain.
Is this correct?
I tried registering my own type map with my own deserializer but it never
uses it. It always uses SimpleDeserializer.
I emailed Rich Scheuerle (one of the axis developers) and he was going to
help me but he has not responded in a few days.
Please, I'd really like to use Axis for this project but if there is no way
to get to this XML before Axis blows up at least someone tell me. I'm new
to SOAP and Axis.
Thank you...
--
Sloan
Re: Unanswered questions
Posted by Sloan Seaman <sl...@sgi.net>.
I wish I could but it is behind a firewall.
Below is what is getting sent and what is returning.
You will notice that the <return> tag does not have a namespace. This is
what I believe the problem is.
Axis blows up on the next tag (root)....
Here is what I am sending (from tcpmon):
POST /xmla/msxisapi.dll HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.0
Host: localhost
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "urn:schemas-microsoft-com:xml-analysis:Discover"
Content-Length: 598
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:Discover
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:schemas-microsoft-com:xml-analysis">
<RequestType xsi:type="xsd:string">DISCOVER_DATASOURCES</RequestType>
<Properties xsi:type="xsd:string"></Properties>
<Restrictions xsi:type="xsd:string"></Restrictions>
</ns1:Discover>
</soapenv:Body>
</soapenv:Envelope>
Here is what it is outputting (again, from tcpmon):
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Thu, 13 Feb 2003 22:30:14 GMT
Content-Type: text/xml
<?xml version="1.0"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<m:DiscoverResponse xmlns:m="urn:schemas-microsoft-com:xml-analysis">
<return SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<root xmlns="urn:schemas-microsoft-com:xml-analysis:rowset"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:schema xmlns="urn:schemas-microsoft-com:xml-analysis:rowset"
targetNamespace="urn:schemas-microsoft-com:xml-analysis:rowset"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:sql="urn:schemas-microsoft-com:xml-sql"
elementFormDefault="qualified">
<xsd:element name="root">
<xsd:complexType>
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:element name="row"
type="row"/></xsd:sequence></xsd:complexType></xsd:element>
<xsd:complexType name="row">
<xsd:choice maxOccurs="unbounded" minOccurs="0">
<xsd:element name="DataSourceName" type="xsd:string"
sql:field="DataSourceName"/>
<xsd:element name="DataSourceDescription" type="xsd:string"
sql:field="DataSourceDescription"/>
<xsd:element name="URL" type="xsd:string" sql:field="URL"/>
<xsd:element name="DataSourceInfo" type="xsd:string"
sql:field="DataSourceInfo"/>
<xsd:element name="ProviderName" type="xsd:string"
sql:field="ProviderName"/>
<xsd:element name="ProviderType" sql:field="ProviderType">
<xsd:complexType>
<xsd:sequence maxOccurs="unbounded" minOccurs="0">
<xsd:any processContents="lax"
maxOccurs="unbounded"/></xsd:sequence></xsd:complexType></xsd:element>
<xsd:element name="AuthenticationMode" sql:type="xsd:string"
sql:field="AuthenticationMode"/></xsd:choice></xsd:complexType></xsd:schema>
<row>
<DataSourceName>Local Analysis Server</DataSourceName>
<DataSourceDescription>Microsoft Analysis Server 2000 on local
machine</DataSourceDescription>
<URL>http://localhost/xmla/msxisapi.dll</URL>
<DataSourceInfo>Provider=MSOLAP;Data Source=local</DataSourceInfo>
<ProviderName>Microsoft XML for Analysis</ProviderName>
<ProviderType><TDP/><MDP/><DMP/></ProviderType>
<AuthenticationMode>Unauthenticated</AuthenticationMode></row></root></retur
n></m:DiscoverResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
----- Original Message -----
From: "Weicheng Peng" <we...@voxa.com>
To: <ax...@ws.apache.org>
Sent: Thursday, February 13, 2003 5:12 PM
Subject: Re: Unanswered questions
> Can you give me the url of this service , and paste the output of that
> service ?
>
> Weicheng
>
> ----- Original Message -----
> From: "Sloan Seaman" <sl...@sgi.net>
> To: <ax...@ws.apache.org>
> Sent: Thursday, February 13, 2003 1:17 PM
> Subject: Unanswered questions
>
>
> > I've asked the following question four different ways and still no
> response
> > (I'm getting a ghost town feeling about this).
> >
> > I need to get this issue resolved in the next two days or give up on
using
> > Axis.
> >
> > Here is my issue:
> >
> > I am using Axis to query a service that it outside of my control.
> > The quering goes fine and the service returns some XML.
> > The XML is not formatted properly though.
> > Axis blows up on it (child element found error).
> >
> > I need to find a way to manipulate the XML (i.e. fix it) so that Axis
> > doesn't blow up on it.
> >
> > I'm guessing that I need to put my own object in a handler chain.
> >
> > Is this correct?
> >
> > I tried registering my own type map with my own deserializer but it
never
> > uses it. It always uses SimpleDeserializer.
> >
> > I emailed Rich Scheuerle (one of the axis developers) and he was going
to
> > help me but he has not responded in a few days.
> >
> > Please, I'd really like to use Axis for this project but if there is no
> way
> > to get to this XML before Axis blows up at least someone tell me. I'm
new
> > to SOAP and Axis.
> >
> > Thank you...
> >
> > --
> > Sloan
> >
>
>
Re: Unanswered questions
Posted by Weicheng Peng <we...@voxa.com>.
Can you give me the url of this service , and paste the output of that
service ?
Weicheng
----- Original Message -----
From: "Sloan Seaman" <sl...@sgi.net>
To: <ax...@ws.apache.org>
Sent: Thursday, February 13, 2003 1:17 PM
Subject: Unanswered questions
> I've asked the following question four different ways and still no
response
> (I'm getting a ghost town feeling about this).
>
> I need to get this issue resolved in the next two days or give up on using
> Axis.
>
> Here is my issue:
>
> I am using Axis to query a service that it outside of my control.
> The quering goes fine and the service returns some XML.
> The XML is not formatted properly though.
> Axis blows up on it (child element found error).
>
> I need to find a way to manipulate the XML (i.e. fix it) so that Axis
> doesn't blow up on it.
>
> I'm guessing that I need to put my own object in a handler chain.
>
> Is this correct?
>
> I tried registering my own type map with my own deserializer but it never
> uses it. It always uses SimpleDeserializer.
>
> I emailed Rich Scheuerle (one of the axis developers) and he was going to
> help me but he has not responded in a few days.
>
> Please, I'd really like to use Axis for this project but if there is no
way
> to get to this XML before Axis blows up at least someone tell me. I'm new
> to SOAP and Axis.
>
> Thank you...
>
> --
> Sloan
>
Re: Unanswered questions
Posted by Sloan Seaman <sl...@sgi.net>.
I'm using Axis to talk with XML for Analysis (XML/A) which accepts MDX
queries for OLAP.
That is what I meant by the query going fine. Sorry for the confusion.
Microsoft just reutrns XML with some errors in it...
That is what I need to deal with and I have never used Axis/Soap before nor
have I written a handler before...
--
Sloan
----- Original Message -----
From: "Liviu Chiriac" <li...@inetsoft.com>
To: <ax...@ws.apache.org>
Sent: Thursday, February 13, 2003 4:59 PM
Subject: RE: Unanswered questions
> What do you mean that the query goes fine, when Axis blows up with an
> error?
>
> What query goes fine?
>
> -----Original Message-----
> From: Sloan Seaman [mailto:sloan@sgi.net]
> Sent: Thursday, February 13, 2003 4:18 PM
> To: axis-user@ws.apache.org
> Subject: Unanswered questions
>
> I've asked the following question four different ways and still no
> response
> (I'm getting a ghost town feeling about this).
>
> I need to get this issue resolved in the next two days or give up on
> using
> Axis.
>
> Here is my issue:
>
> I am using Axis to query a service that it outside of my control.
> The quering goes fine and the service returns some XML.
> The XML is not formatted properly though.
> Axis blows up on it (child element found error).
>
> I need to find a way to manipulate the XML (i.e. fix it) so that Axis
> doesn't blow up on it.
>
> I'm guessing that I need to put my own object in a handler chain.
>
> Is this correct?
>
> I tried registering my own type map with my own deserializer but it
> never
> uses it. It always uses SimpleDeserializer.
>
> I emailed Rich Scheuerle (one of the axis developers) and he was going
> to
> help me but he has not responded in a few days.
>
> Please, I'd really like to use Axis for this project but if there is no
> way
> to get to this XML before Axis blows up at least someone tell me. I'm
> new
> to SOAP and Axis.
>
> Thank you...
>
> --
> Sloan
>
>
>
>
>
RE: Unanswered questions
Posted by Liviu Chiriac <li...@inetsoft.com>.
What do you mean that the query goes fine, when Axis blows up with an
error?
What query goes fine?
-----Original Message-----
From: Sloan Seaman [mailto:sloan@sgi.net]
Sent: Thursday, February 13, 2003 4:18 PM
To: axis-user@ws.apache.org
Subject: Unanswered questions
I've asked the following question four different ways and still no
response
(I'm getting a ghost town feeling about this).
I need to get this issue resolved in the next two days or give up on
using
Axis.
Here is my issue:
I am using Axis to query a service that it outside of my control.
The quering goes fine and the service returns some XML.
The XML is not formatted properly though.
Axis blows up on it (child element found error).
I need to find a way to manipulate the XML (i.e. fix it) so that Axis
doesn't blow up on it.
I'm guessing that I need to put my own object in a handler chain.
Is this correct?
I tried registering my own type map with my own deserializer but it
never
uses it. It always uses SimpleDeserializer.
I emailed Rich Scheuerle (one of the axis developers) and he was going
to
help me but he has not responded in a few days.
Please, I'd really like to use Axis for this project but if there is no
way
to get to this XML before Axis blows up at least someone tell me. I'm
new
to SOAP and Axis.
Thank you...
--
Sloan
Is there a chance of having a Forum of discussion ( something more flexible )
Posted by Apostolopoulos Paris <pa...@freemail.gr>.
Hi!
I would like to ask if there is a possibility in the near future the
administrative part of Apache Axis , to provide us (the users) a more
flexible and interactive way of talking about Axis , problems related to
axis..and stuff ! I don't know if I am the only one that finds generally
the mailing list a bit restrictive. I just red a mail from a user that
was wondering about an un-answered mail , and I tought that part of this
problem might be the strange nature of the mailing list interaction.
Please don't get me wrong I don't want to offend anyone , the Apache
group or the Axis team. I am just wondering!
I would like also to ask the users , what they think about a having a
forum of discusion (imagine a PHP based one ), I find these forums very
very flexible and quite interactive , especially when it comes to
supporting a project like Axis which is being more and more famous!
Lets say that the Apache Axis team is not interested in such a solution
, is anyone else interested? May we (the users) could start such a
thing!
Thank you for your time!
Re: Unanswered questions
Posted by Sloan Seaman <sl...@sgi.net>.
I have read up on how the handler chain works (to some degree)
How do you programmatically inject something into a chain or do I have to
make a chain from scratch that is just a copy of an existing chain with my
stuff added?
If so, how do you set the chain in Axis? I could not find any docs on it
and the API didn't seem very clear to me.
Thank you for at least validating what I thought I had to do...
--
Sloan
----- Original Message -----
From: "Anne Thomas Manes" <an...@manes.net>
To: <ax...@ws.apache.org>
Sent: Thursday, February 13, 2003 4:43 PM
Subject: RE: Unanswered questions
> You're correct. You need to intercept the message using a handler. Given
the
> child element found error, I suspect that you probably want to intercept
it
> at the transport level. See the Architecture Guide for an overview of how
> the handler chain works.
>
> Anne
>
> > -----Original Message-----
> > From: Sloan Seaman [mailto:sloan@sgi.net]
> > Sent: Thursday, February 13, 2003 4:18 PM
> > To: axis-user@ws.apache.org
> > Subject: Unanswered questions
> >
> >
> > I've asked the following question four different ways and still
> > no response
> > (I'm getting a ghost town feeling about this).
> >
> > I need to get this issue resolved in the next two days or give up on
using
> > Axis.
> >
> > Here is my issue:
> >
> > I am using Axis to query a service that it outside of my control.
> > The quering goes fine and the service returns some XML.
> > The XML is not formatted properly though.
> > Axis blows up on it (child element found error).
> >
> > I need to find a way to manipulate the XML (i.e. fix it) so that Axis
> > doesn't blow up on it.
> >
> > I'm guessing that I need to put my own object in a handler chain.
> >
> > Is this correct?
> >
> > I tried registering my own type map with my own deserializer but it
never
> > uses it. It always uses SimpleDeserializer.
> >
> > I emailed Rich Scheuerle (one of the axis developers) and he was going
to
> > help me but he has not responded in a few days.
> >
> > Please, I'd really like to use Axis for this project but if there
> > is no way
> > to get to this XML before Axis blows up at least someone tell me. I'm
new
> > to SOAP and Axis.
> >
> > Thank you...
> >
> > --
> > Sloan
> >
> >
>
>
RE: Unanswered questions
Posted by Anne Thomas Manes <an...@manes.net>.
You're correct. You need to intercept the message using a handler. Given the
child element found error, I suspect that you probably want to intercept it
at the transport level. See the Architecture Guide for an overview of how
the handler chain works.
Anne
> -----Original Message-----
> From: Sloan Seaman [mailto:sloan@sgi.net]
> Sent: Thursday, February 13, 2003 4:18 PM
> To: axis-user@ws.apache.org
> Subject: Unanswered questions
>
>
> I've asked the following question four different ways and still
> no response
> (I'm getting a ghost town feeling about this).
>
> I need to get this issue resolved in the next two days or give up on using
> Axis.
>
> Here is my issue:
>
> I am using Axis to query a service that it outside of my control.
> The quering goes fine and the service returns some XML.
> The XML is not formatted properly though.
> Axis blows up on it (child element found error).
>
> I need to find a way to manipulate the XML (i.e. fix it) so that Axis
> doesn't blow up on it.
>
> I'm guessing that I need to put my own object in a handler chain.
>
> Is this correct?
>
> I tried registering my own type map with my own deserializer but it never
> uses it. It always uses SimpleDeserializer.
>
> I emailed Rich Scheuerle (one of the axis developers) and he was going to
> help me but he has not responded in a few days.
>
> Please, I'd really like to use Axis for this project but if there
> is no way
> to get to this XML before Axis blows up at least someone tell me. I'm new
> to SOAP and Axis.
>
> Thank you...
>
> --
> Sloan
>
>