all groups > dotnet web services > january 2008 >
You're in the

dotnet web services

group:

.htaccess and soap



.htaccess and soap Joshua
1/19/2008 7:38:08 PM
dotnet web services: Hi,

I want to cosume a .htaccess protected webservice by C#. While I am
calling a function I get a Exception like this:

SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://...'

If I go to the file by browser I get this output:

Browser:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>WSDL</faultcode>
<faultstring>SOAP-ERROR: Parsing WSDL: Couldn't load from'
http://....wsdl'</faultstring>
</SOAP-ENV:Fault></SOAP-ENV:Body>
</SOAP-ENV:Envelope>

It looks like the Service cannot access the wsdl. If I deactivate
..htaccess everything works fine.

Browser:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Bad Request. Can't find
HTTP_RAW_POST_DATA</faultstring></SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

It 's OK

regards

Re: .htaccess and soap Spam Catcher
1/19/2008 9:19:49 PM
Joshua <no@spam.de> wrote in news:O9Ne8osWIHA.5984@TK2MSFTNGP06.phx.gbl:

[quoted text, click to view]

The message above looks like an error...

What happens when you access the web service directly to retreive the WSDL,
i.e. http://mysite/page.asmx?wsdl

Can you retreive the WSDL?

--
Re: .htaccess and soap Joshua
1/20/2008 11:10:57 PM
[quoted text, click to view]

I know, but it 's correct. If I load the site from browser there is no
content in the Request. But the system can read the wsdl file else he
wouldn 't try to parse content.

[quoted text, click to view]

Yes

I think it has something to do that the service site itself cannot
access the wsdl. I found a posting that describes the same issue but
without a solution ( http://mcse.ms/message1803421.html ). Has anyone an
idea?

regards

AddThis Social Bookmark Button