Forum Discussion

apoorva's avatar
apoorva
Occasional Contributor
17 years ago

Missing soapUI project file..(Soapui-2.0.2 in unix environment)

Hi,

I download soapui2.0.2 in Unix. I copied soapui-project-file.xml from windows environment to unix. And I changed the value of path-value of soapui-project.xml file corresponding my unix's user path. I gave input fromURL to load WSDL in project.

I dont have GUI environment in Unix. when I try to run mockservice from command line

sh mockservicerunner.sh -m"SidManagementWSSOAP11Binding MockService" "/local/mnt/home/camadmin/soapui-2.0.2/SIDManagement-soapui-project.xml"

I found following error..
================================
=
= SOAPUI_HOME = /home/camadmin/soapui-2.0.2
=
================================
soapUI 2.0.2 MockService Runner
usage: mockservicerunner [options]
-s    Sets the soapui-settings.xml file to use
-a    Sets the url path to listen on
-b    Turns off blocking read for termination
-m    Specified the name of the MockService to run
-p    Sets the local port to listen on

Missing soapUI project file..


I will appreciate if anyone provide input please.

Thanks in advance

Regards,
Jim
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Jim,

    I'm really no expert here.. maybe you need to use the -c option when calling sh?

    sh -c mockservicerunner.sh etc..

    ?

    regards,

    /Ole
    eviware.com
  • Robert_Nemet's avatar
    Robert_Nemet
    Occasional Contributor
    >sh mockservicerunner.sh -m"SidManagementWSSOAP11Binding MockService" "/local/mnt/home/camadmin/soapui-2.0.2/SIDManagement-soapui-project.xml"

    Your service name have white space. Remove it from service name example:  ......

    Unix removes " and for it looks like you are parsing 3 instead 2 params. So, it should be something like this:

    sh mockservicerunner.sh -mSidManagementWSSOAP11Binding /local/mnt/home/camadmin/soapui-2.0.2/SIDManagement-soapui-project.xml
  • apoorva's avatar
    apoorva
    Occasional Contributor
    Thanks Robert for your suggestion.

    I also found alternate way not good enough but able to start mockservice now..

    I removed -m option and simply passing one argument project name..

    sh mockservicerunner.sh "/local/mnt/home/camadmin/soapui-2.0.2/SIDManagement-soapui-project.xml"

    Regards,
    Jim