highjo Posted January 16, 2010 Share Posted January 16, 2010 Helloi've successfully deployed my report on JS-3.7RC and could run it both from ireport and from the web app.I had php 5.3.1 install and mysql 5.1.41. all under windows xp sp2.i've tried running the sample bundled with the server but it seems soap implementation of php has changed a bit and i've tried to accomodate it a bit but no success.Then i download the nusoap-0.7.3 library and try my own implementation(and copy some of the sample files) to connect to the web service i was having this error: "error no transport found, or selected transport is not yet supported!"then i've decided to see what is happening and i downloaded soapUI to connect to the webservice.i had all the function created for me in the soapUI project but when calling the page it gives this : Error report HTTP Status 401 -Full authentication is required to access this resource.This request requires HTTP authentication.i've tried to put and authentication header but no success.i'm sure i'm not doing it well.here it is :<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:axis="http://axis2.ws.jasperserver.jaspersoft.com"> <soapenv:Header/> <wsse:Security soapenv:mustUnderstand="0" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"> <wsse:UsernameToken> <wsse:Username xsi:type="xsd:string"> jasperadmin</wsse:Username> <wsse:Password Type="wsse:PasswordBasic" xsi:type="xsd:string">jasperadmin</wsse:Password> </wsse:UsernameToken> </wsse:Security> <soapenv:Body> <axis:runReport soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <requestXmlString xsi:type="xsd:string" operationName="runReport"> <argument name='RUN_OUTPUT_FORMAT'>PDF</argument> <resourceDescriptor name="" wsType="reportUnit" uriString="/reports/clientMainReport" isNew="false"> <label></label> <parameter name="accountId"> <![CDATA[275ff0ed-7c52-a1d1-aeab-44c2aae5fa6e]]> </parameter> </resourceDescriptor> </requestXmlString> </axis:runReport> </soapenv:Body></soapenv:Envelope> i've attached too the php files that i'm using to connect.Can please anyone help.I need this to get going , and i'm very behind schedule i've allocate myself to get a hand on jasperserver basic stuffs So please.thanks for reading this.thanks Post Edited by highjo at 01/16/2010 20:11 Link to comment Share on other sites More sharing options...
tkavanagh Posted January 18, 2010 Share Posted January 18, 2010 This worked for me with an older version of the Pear Soap components. But this work was done last year. I will try with the most current tomorrow. And I'll report what I find. Regards,-Tony Link to comment Share on other sites More sharing options...
highjo Posted January 18, 2010 Author Share Posted January 18, 2010 Thanks tony for the reply.I just got the sample working with some tweaks here and there.First i didnt' know it was using Pear Soap i made the assumptions that it was using and old version of php soapclient class (which has changed a bit actually).So I got it working fine now.But since it's a web service it's supposed to work with every implementation of php soap library right? correct me if i'm wrong.Yesterday after posting it i tried with Nusoap and i got the Returncode 1.And i got stack because i didin't know how to get the attachement.Anyway in my free time i can submit a nusoap version to one of the admin guys to do a sticky post with it.Thanks a lot again Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now