Hi Ruwan,

Thank you for your patience.

 

The solution you provided by you worked to some extend.

Rt now I am able to get into my web services that is having another name
space. But the problem is that inside the web services user name and
password is null string.

I have changed your solution to

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="

1.0">

<xsl:template match="*">

<authenticate xmlns="http://sync.dtc.com/";>

<strUserName><xsl:value-of

select="//authenticate/strUserName/text()"/></strUserName>

<strPassword><xsl:value-of

select="//authenticate/strPassword/text()"/></strPassword>

</authenticate>

</xsl:template>

</xsl:stylesheet>

 

 

Since strPassword::text() is giving invalid axes name error.

So I changed into strPassword/text().

 

I do have another question too .

Regarding next expected request to the same service from the same client
will be another element

Say right now the element is "authenticate". The next time the element will
be "requestXML" with different child elements. (This is because after
"authenticate" the service expects "requestXML" as next request from the
client. Could you please help me in this or provide me any link that can
really help me in this scenario.

 

Thanks & Regards,

Renjith

 

 

 

-----Original Message-----
From: Ruwan Linton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 17, 2007 3:48 AM
To: [email protected]
Subject: Re: "Regarding Namespace Problem with an application"

 

Hi Renjith,

 

I am not that sure about the error you are getting on the EPR, but if you

are not going to specify the source, then you need to change the XSLT a

little bit more in order to identically transform the element with changing

the NS only.

 

 

> authenticate, Envelope:

> 

> <?xml version='1.0' encoding='utf-8'?>

> 

> <soap:Envelope

> 

> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";

> 

> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

> 

> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

> 

> <soap:Body>

> 

>   <authenticate xmlns="http://developer.intuit.com/";>

> 

> <strUserName>test</strUserName>

> 

> <strPassword>test</strPassword>

> 

>   </authenticate>

> 

> </soap:Body>

> 

> </soap:Envelope>

> 

> 

> Note: I avoid using source option in xslt , since I read somewhere that it

> will take the first element by default if we are not using "source"

> attribute in the tag.

> 

> 

> 

> Could you please guide me with this problem?

 

 

 

If you are not going to use the source attr of XSLT mediator, U need to

write a  full xsl transformation on the message body.

 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="

1.0">

<xsl:template match="*">

<authenticate xmlns="http://developer.intuit.com/";>

<strUserName><xsl:value-of

select="//authenticate/strUserName::text()"/></strUserName>

<strPassword><xsl:value-of

select="//authenticate/strPassword::text()"/></strPassword>

</authenticate>

</xsl:template>

</xsl:stylesheet>

 

Can U try with this new XSLT (here I am assuming that the message is in the

format of what U pasted earlier only with the NS being different)

 

 

If this even fails can U please attach the full console log to the mail so

that I can see what is going wrong.

 

Thanks,

Ruwan

 

-- 

Ruwan Linton

http://www.wso2.org - "Oxygenating the Web Services Platform"

Reply via email to