Forum Discussion

geekyglasses's avatar
geekyglasses
Occasional Visitor
10 years ago

Getting <faultcode>soapenv:Server</faultcode><faultstring>unknown</faultstring>

I'm new to soapui and web services. I hope someone can help me with this.

I set up axis2, apache ant, mysql server on localhost:8080, but I had xampp previously installed with a mysql database installed on localhost:85.

When I run a webservice in SoapUI  to add a guest into the database, it gives me an error below:

      <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring>unknown</faultstring>
         <detail>
            <ns:GuestManagementServiceGuestManagementException xmlns:ns="http://sample.com/reservation/guest/types">
               <GuestManagementException xsi:type="ax21:GuestManagementException" xmlns="http://sample.com/reservation/guest/types" xmlns:ax21="http://exception.reservation.sample.com/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                  <ax21:message xsi:nil="true"/>
               </GuestManagementException>
            </ns:GuestManagementServiceGuestManagementException>
         </detail>
      </soapenv:Fault>

 

Does anyone know how to fix this so running the webservice will add the guest into the guest database table?

Thanks.

 

 

  • ayem22's avatar
    ayem22
    Occasional Visitor

    Hi, I just noticed your error and thought that I might be of help.  I had the same issue for a long time and I believe that the error lies with the mysql connection and granting priviliges. Try the following:

     

    1) Go to your msql workbench

     

    2) Double click on the hotel_reservation_db in the Object Browsers pane on the left

     

    3) Execute the following query in the query window

    GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'root' WITH GRANT OPTION;

     

    4) Restart the axis server and go to SoapUI. Try to generate a user via the addGuest request. You should be able to do it successfully.