cancel
Showing results for 
Search instead for 
Did you mean: 

queryview web service

sap_cohort
Active Contributor
0 Kudos

Hi, I'm still trying to get the queryview web service to work. When I submit my WSDL call in IE the url works fine and I get returned all the wsdl details.

http://<server>:<port>/sap/bw/xml/soap/queryview?wsdl

I've setup a service call in Flex to use the above wsdl url and I receive an HTTP request error and it specifies the url

http://<server>:<port>/sap/bw/xml/soap/queryview?sap-client=100

Error: code:Server.Error.Request string:'HTTP request error' detail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false text="Error #2032: Stream Error. URL: http://<server>:<port>/sap/bw/xml/soap/queryview?sap-client=100"]. URL: http://<server>:<port>/sap/bw/xml/soap/queryview?sap-client=100'

at mx.rpc::AbstractInvoker/http://www.macromedia.com/2005/flex/mx/internal::faultHandler()

at flash.events::EventDispatcher/dispatchEvent()

at mx.messaging::MessageAgent/fault()

at mx.messaging::Producer/fault()

at C:\dev\enterprise_beta1\frameworks\libs\framework.swc(mx/validators/Validator)$132::DirectHTTPMessageResponder/errorHandler()

at flash.events::EventDispatcher/dispatchEvent()

at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()

Now I've noticed that the url in error is also the same url in the WSDL output for the <soap:address>.

- <wsdl:service name="query_view_dataService">

- <wsdl:port name="query_view_dataSoapBinding" binding="tns:query_view_dataSoapBinding">

<soap:address location="http://<server>:<port>/sap/bw/xml/soap/queryview?sap-client=100" />

</wsdl:port>

</wsdl:service>

The SOAP Address URL mentioned in the WSDL output does not execute in IE so it is invalid.

1. If I enter the <SOAP Address> URL in IE should it execute and return something?

2. Is the WSDL returning the wrong SOAP Address?

3. If so where is my configuration wrong?

I have followed all of the examples precisely to no avail!

Can anyone help?

Thanks!

Accepted Solutions (0)

Answers (4)

Answers (4)

sap_cohort
Active Contributor
0 Kudos

assign points

sap_cohort
Active Contributor
0 Kudos

Flex was immature. Works with new versions.

Former Member
0 Kudos

Hi Kenneth,

I'm trying to do the same thing in flex and wonder if you'd mind sharing your code?

I've got the webservice working on the BW side, but struggling to work out how to use it and pass parameters from flex.

Many thanks,

AB

stefan_rossmanith
Discoverer
0 Kudos

Hi,

when you are using sending the request using IE, please try to append the suffix ?sap-client=100, too. If then the error message also occurs in the IE, the problem is the SAP client. If you do not provide a client in the URL, the client configured in the service (ABAP backend) is used or if no client is configured there the default client is used (also refer to OSS note 429436). So maybe the request works fine when using the default client (which possibly is not equal to client 100) but not when using the client 100.

This is only a suggestion, because of the different URLs you mentioned. If the problem occurs on server side, then you send two different requests to the server. If the requests are identical (and also the logon infos like user, client, language) the problem must exist on client side. Note that you can provide logon infos as URL parameters (sap-client, sap-language, sap-user, ...) or they can be configured on server side.

Hope this helps...