cancel
Showing results for 
Search instead for 
Did you mean: 

Web Service Login

sap_cohort
Active Contributor
0 Kudos

Hi, I'm using XMLSpy to access the queryview web service.

When I send my SOAP message to the server I get an authentication error. (almost there!)

Any idea how I can log into this web service properly? The WSDL doesn't generate and fields for login...

Here is what I have:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<SOAP-ENV:Body>
		<m:GetQueryViewData xmlns:m="urn:sap-com:document:sap:soap:functions:mc-style">
			<Infoprovider>String</Infoprovider>
			<Parameter>
				<item>
					<Name>String</Name>
					<Value>String</Value>
				</item>
			</Parameter>
			<Query>String</Query>
			<ViewId>String</ViewId>
		</m:GetQueryViewData>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kenneth,

To fix authorization problem, we need to maintain the entry( hash value of webservice, which we can find out from WSOBHASH table ) in S_SERVICE authorization object and assign this object to role.

Regards

Madhukar

sap_cohort
Active Contributor
0 Kudos

This is the SOAP Response...


<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
	<soap-env:Body>
		<soap-env:Fault>
			<faultcode xmlns:n0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">n0:FailedAuthentication</faultcode>
			<faultstring xml:lang="e">Authority check failed</faultstring>
		</soap-env:Fault>
	</soap-env:Body>
</soap-env:Envelope>

athavanraja
Active Contributor
0 Kudos

i havent used XMLSpy but some other tools (.NET webservice studio & SOAP scope) successfully.

when i used the WSDL (<Protocol>://<Server>:<Port>/sap/bw/xml/soap/queryview?wsdl)

the client proxy generated by these tools generate interface for sap user id and sap password as well.

Regards

Raja