What is the best way of testing a custom web service

We have a custom developed service (a jar sitting in the xmlpserver/WEB-INF/lib folder) on the BI Publisher server. This service uses the BookBinder class to concatenate some documents.
We call this service through Axis (PublicReportService_v11) from a 3rd party application, passing in all the details to complete the call.
I inherited this peace of code and now I need to build some kind of automated test to make sure the service is properly tested. We are using version 10.1.3.4.1.
I started writing a Java application to send requests but I'm not too sure how to call our custom service. The code looks something like this:
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
public class Test_Web_Service
public static void main(String [] args) throws Exception {
try {
String endpoint = "http://bipserver:port/xmlpserver/services/PublicReportService_v11";
Service service = new Service();
Call call= (Call) service.createCall();
call.setProperty( call.USERNAME_PROPERTY, "bob" );
call.setProperty( call.SPASSWORD_PROPERTY, "pw");
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new QName("http://bipserver:port/xmlpserver/services/PublicReportService_v11","myCustomService"));
String ret = (String) call.invoke( new Object[] {""} );
System.out.println("Sent '20', got '" + ret + "'");
} catch (Exception e) {
System.err.println(e.toString());
I'm getting a NullPointerException.
Edited by: user612544 on 28-Feb-2013 07:13

I'd recommend a tool like SoapUI (http://www.soapui.org/) - the basic version is free and probably all you'll need.
Barry Goodsell.
Please mark as answered if helpful

Similar Messages

  • I am a Creative Cloud customer . . . what is the best way to contact Adobe Customer Support???

    I am a paying Creative Cloud customer . . . that being said . . . what is the best way to contact Adobe Customer Support???

    Hi miami730,
    Please refer the link: http://helpx.adobe.com/in/contact.html to contact customer support.
    Regards,
    Romit Sinha

  • What is the best way to zero a 'custom voltage with excitation' sensor from the front panel?

    What is the best way to zero a 'custom voltage with excitation' sensor from the front panel?
    Thanks for any help

    Hi Donavan,
    There are two options for zeroing with the NI-9237.  You can perform offset nulling and shunt calibration with a strain task, or if you use custom excitation you can use software compensation.
    See the Bridge Balancing, Offset Nulling section in  the Load, Force, and Torque Measurements tutorial. Take a measurement before the strain is applied and subtract this from all subsequent measurements.  See the above tutorial to consider the tradeoff in accuracy between these two options.
    Hope this helps,
    Jennifer O.
    Applications Engineer
    National Instruments

  • What is the best way is to create a web app item collection which will contain only the listings where addressstate="ABC".

    What is the best way is to create a web app item collection which will contain only the listings where addressstate="ABC".

    How many systems have you used Robert?
    This is the only system you can not have all item data at least in JSON format and all of it. Big commerce has a lower limit and as I have said in every post related to a limit - I understand the function, but you can still make the requests as just one example (front and back)
    Same with API Robert.
    Firstly - the SOAP API request on say products gets you ALL the products, if you do something through a REST API request you can  make the requests to get all the items to complete your process of what your doing - You have to otherwise the API is pointless.
    Ok if the normal modules can not iterate through if there is a module_data solution, and web apps will get there hopefully sooner then later and you do have the sql query (where) for your filter which is great BUT, if you want to implement a solution across everything you cant do that with the liquid implementation.
    This also flows through to the JSON everywhere in concept which is fundamentally flawed for the same reason... And again referring other like services where a hard API has a limit but the JSON request returns everything.
    How those work varies from the method of request, some will only update every day, xxx time (Depending on cost of the plan) so its a cached version of data, to the ones that limit that request to x number of times per set time/day.
    That is how the actual rest of the world works, varied solutions but they are solutions. BC know they have a few limitations, there clearly is the need for things, there are a varied set of options... It is just a matter of engaging in it and offering up a solution for it, silence just creates frustration.

  • What is the best way to test connection keys?

    I've created multiple connection key for various rolse on a
    new site. When I select the key it asks if I want to replace the
    existing connection, which I really don't want to do.
    What is the best way to handle this so the administrative
    connection is not affected?

    Also create a connection key for you administrator role, so
    you can swiftly switch back.

  • What is the best way to deploy/update custom security realm classes to WLS 6.0?

    From the WLS 6.0 console, I see that I can specify the Java class that
    implements my custom security realm but I am wondering what is the best way
    to deploy/update this code. I don't see a way to do this from the console.
    Does this mean that I have to manually copy the class files over that
    implement my custom security realm?

    Thanks Danut,
    A jar file seems to be a good way to package it up but it sounds like it
    still needs to be manually copied to each Weblogic server install directory
    post-installation and whenever it is updated. I thought it would be nice to
    be able to deploy/update the custom security realm by uploading it through
    the Console just as you can with web applications and EJBs.
    Brian
    "Danut Prisacaru" <[email protected]> wrote in message
    news:3aba2db0$[email protected]..
    You have to have your Custom Realm class in the class path. I usually havea
    jar file with all the Custom Realm classes and that jar I copy it in thelib
    folder. Then I modify "startWebLogic.cmd" and I add to the classpath
    ".\lib\CustomRealm.jar"
    set
    CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\CustomRealm.jar;
    >
    Be aware that in order to have you custom realm besides creating thecustom
    realm using the console you also have to create a custom caching andchoose
    that one as your default caching realm.
    Here is how the security settings are looking in my "config.xml"
    <CustomRealm Name="CustomRealm"
    RealmClassName="Custom.appserver.weblogic.security.CustomRealm"/>
    <CachingRealm BasicRealm="CustomRealm" CacheCaseSensitive="true"
    Name="CustomCachingRealm"/>
    <Realm CachingRealm="CustomCachingRealm" FileRealm="wl_default_file_realm"
    Name="wl_default_realm"/>
    <FileRealm Name="wl_default_file_realm"/>
    <Security GuestDisabled="false"
    Name="mydomain" PasswordPolicy="wl_default_password_policy"
    Realm="wl_default_realm"/>
    Danut

  • What is the best way to test for collisions between objects?

    I am in the process of developing my first game, my first decent game that is. I understand how to develop the background and tileset for the game, but have yet to figure out an effective way of testing for collisions. As in you try to move the character into a wall, or another object on the level.
    If I divide the level into tiles, it won't be to hard, but I am thinking I want to have the hero be able to move all over the place, not just from square to square.
    Any suggestions or ideas will be greatly appreciated

    If I divide the level into tiles, it won't be to hard,
    but I am thinking I want to have the hero be able to
    move all over the place, not just from square to
    square.Err...
    So if the hero is not on a square, the hero is not on a tile and consequently is not on a visible aspect of the game world?
    I suspect that you wanted the hero to be able to move in any direction, not just the standard cardinal directions.
    If you're using tiles to represent the game world, then the solution is simple - check to see if there's anything "solid" already on the target tile. If there is, abort the move and report it as a collision. If there isn't, permit the move.
    It's only when you have a tile-less world that you actually have to determine if the leading edge of your hero crosses the boundary of an item (or border) that he shouldn't be allowed to cross. Doing so is complicated enough that I would simply suggest that you search the forum for third party collision detection packages that you can borrow.

  • What is the best way to make a custom arch install cd?

    Hello, before I start I should mention that I have been reading about various tools and looking at wiki articles.  But I have had some trouble getting started.
    What I would like is an install cd that installs the packages I choose.  I'd like this to be either automatic, or allow me to select the packages I want (which are presumably on the cd), just like in the normal way of installing arch perhaps, maybe.
    I'd just like a way of installing arch, the way it is set up now, with minimal hassle, no internet access, just pop the cd in and out comes archlinux with a nice desktop environment so I can give it to my mum without having to travel hundreds of miles to install it for her.
    "just pop the cd in and out comes archlinux with a nice desktop environment" -Ahahahahahaha, I hear you react.  Well, you know, at least I would like it to be no MORE difficult than the standard install procedure. 
    For example, is there no way I can just download the .pkg.tar.gz files I want, add 'em to the fracking archlinux iso I download from here, meddle about with a config file so pacman knows where to find the additional pkg.tar.gzips, and then run a script afterwards to copy a few configuration files to the relevant locations?  No?  Won't work? 
    At least, I have not discovered a way to do this yet.  Please can someone get me started?
    Should I maybe start HERE?
    http://wiki.archlinux.org/index.php/Qui … stallation
    It says it "may contain old, confusing and wrong information" -how unusual... 
    Larch looks pretty good, will this do what I want?
    I actually think larch is definitely the answer.  I'm gonna mark it solved.  Even though I will probably have some trouble with it.  Sorry for asking this question for the hundredth time, but, well, the forums were down yesterday (the day I was trying to do this, obviously).
    Maybe I'll leave it unsolved until I get specific errors...
    Last edited by darkbeanies (2009-09-01 16:44:00)

    darkbeanies wrote:
    Yeah, I like xfce, but I'd give her the excellent chakra if I was going to give her a ready made thing, which I might do if things go wrong...
    But that isn't what I'm trying to do.  I want to learn how to build an install disc, too.  It takes me a long time to get arch up and running.  I would like to know how to automate it so that I end up with my own personal humble distribution.
    I realize there are many alternatives to doing what I am trying to do. But there are a hundred reasons I can think of why a custom archlinux install cd made by me that goes "do you want to install y/n" and then you press y and it formats the disk, shoves the stuff on and then it works would be the best option.
    This assumes, of course, that my mum can plug in the computer, monitor, mouse, keyboard and speakers, insert the disc and press y, all of which are long shots.
    Anyway, I'm making some progress with larch now.  I can roughly see how it's going to work, it's pretty straightforward, so it would seem.
    Thanks!
    Yeah I see your point. I like archiso because he has a barebone option there, and you can build it the way you like it from there. I just had trouble getting Arch to run for me, so his iso was just easier as I am very unlearned in linux, and at 63 I dont have a lot of time, or energy to learn what it seems everyone but me knows. I still have to work to earn a living, and with a limited education I may be more dense than alot of the younger folks on here, so this just made it a little easier for me. Good luck with it, I hope you get what your after.
    Maybe have a look at ISOMaster too, it seems simple enough to use.
    Last edited by regibbs1 (2009-09-01 22:40:45)

  • What is the best way to test my superdrive?

    Hello there;
    My mac is OS X LION 10.7.5. I, have tried to install winodws 8.1 and when I was in the stage of installation it wont recognize my ISO file in my DVD disc. So is this enough to declare disc cluprit? or there is a kind of test that my be run and verify disc functionality? My other If it's problem and want to purchase a new DVD drive, I, am thinking of Blue-ray. is it compatible to my current OS.
    Thanks.

    Also create a connection key for you administrator role, so
    you can swiftly switch back.

  • When traveling aboard, what's the best way to go about voice data services

    I will be traveling for 5 weeks in Turkey and I will like to be able to use my iPhone to make emergency calls and maybe be able to get 3G coverage for navigation and information purposes.
    I understand that service fees for this kind of situations can be astronomical, but does anybody knows if one can sign for local service since the iphone recognizes foreign networks and links to them when in other country.

    Thank you all for your help.
    Unfortunately my iPhone is locked to Telcel, and I just got an special voice plan for Turkey from them at about $4 USD per minute, which been expensive, it's about half of what the charge would be without it.
    But not data deal, so I think I will be limited to WiFi only.

  • What is the best way to port complete applications from DEV - Test - PRD?

    Hi,
    One of my customers recently asked me, Supposing I do the complete integrations and modelling in SOA Suite on the DEV Environment. Then,
    What is the best way to port complete applications from DEV -> Test -> PROD ??
    Also, since the URLs in use in the DEV environment would be very different from other environments, what is the easiest way to maintain them, and to build in Access Control mechanisms ?
    Best Regards

    Hi AJ,
    Nice PDF !
    Though the PDF does give a basic idea as to how we can go about the deployments using ANT and EM in Test and Prod, it doesn't really give extensive details. For eg. ANT would obviously need huge ANT scripts to be written for migrations to multiple Test servers, etc.
    Similarly, when we talk about EM, does it mean each of the services has to be manually deployed on Production ?
    I am sure we would be looking more towards a fully automated solution. No ?
    Best Regards
    Nitin

  • What is the best way to port complete applications from DEV - Test - PROD

    Hi,
    One of my customers recently asked me, Supposing I do the complete integrations and modelling in SOA Suite on the DEV Environment. Then,
    What is the best way to port complete applications from DEV -> Test -> PROD ??
    Also, since the URLs in use in the DEV environment would be very different from other environments, what is the easiest way to maintain them, and to build in Access Control mechanisms ?
    Best Regards

    It has been discussed here in detail-
    SOA 11g  Composite Deployment across multiple Instances: Best Practice
    since the URLs in use in the DEV environment would be very different from other environments, what is the easiest way to maintain them, and to build in Access Control mechanisms ?You may use deployment plan for this purpose. For access control, you may use Role Based access of Weblogic and EM. Please refer -
    http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10226/appx_roles_privs.htm#BABIHDFJ
    Regards,
    Anuj

  • Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic. can anyone tell me what is the best way to clone the environment, can I just tar the weblogic file syste

    Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic..
    Can anyone tell me what is the best way to cloning the application from different environment, the test and production are in different physical server.
    Can I just tar the weblogic file system and untar it to the new server and make the necessary changes?
    Can anyone share their experiences and how to with me?
    Thank in advance.
    Katherine

    Hi Katherine,
    yes and no . You need as well weblogic + soa files as the database schemas (soa_infra, mds...).
    Please refer to the AMIS Blog: https://technology.amis.nl/2011/08/11/clone-your-oracle-fmw-soa-suite-11g/
    HTH
    Borys

  • I have an old 30" apple cinema display (2005) I want to use as a 2nd monitor to a new iMac (2012).  I don't just want mirror image of iMac; what's the best way to do this?

    I have not bought the iMac yet but will do so very soon and just want to make sure I have what I need to get everything setup including adding the old faithful 2005 30" cinema display.  Currently I am driving the old 30" cinema display with a macbook pro also purchased 2005 and happy to say I got a lot of good miles out of this rig.  What's the best way to connect the old 30" monitor as a second display for the new generation iMacs?
    Other Questions
    I can find online new in unopened box a 2012 iMac 27" i7 with 1T Fusion Drive for $1899 no sales tax.  This seems like a pretty good deal since I notice the same is available from Apple refurbished for $100 more plus sales tax.  I know that they say the Fusion drive is a lot faster on 2013 models but some of the speed tests I reviewed online showed the 2012 i7 and 2013 i7 very close on speed for both storage and processing.  Any thoughts?
    I don't like changing batteries so I would buy a separate Apple keyboard with numeric pad since it only comes with wireless keyboard.  I'm a trackpad enthusiast having been using my macbook pro trackpad with current set up; and I am prepared to buy the Apple trackpad and replace batteries every 2 months but I would greatly prefer USB connection and rechargeable trackpact.  I know Logitech makes one so if anyone is using and knows how it compares to Apple's I'm all ears. 

    <http://support.apple.com/kb/HT5891>
    You can use USB for the Apple trackpad.
    <http://www.mobeetechnology.com/the-power-bar.html>

  • What is the best way to verify default heap size in Java

    Hi All,
    What is the best way to verify default heap size in Java ? does it vary over JVM to JVM . I was reading this article http://javarevisited.blogspot.sg/2011/05/java-heap-space-memory-size-jvm.html , and it says default size is 128 MB but When I run following code :
    public static void main(String args[]) {
    int MB = 1024*1024;
    System.out.println(Runtime.getRuntime().totalMemory()/MB);
    It print "870" i.e. 870 MB.
    I am bit confused, what is the best way to verify default heap size in any JVM ?
    Edited by: 938864 on Jun 5, 2012 11:16 PM

    938864 wrote:
    Hi Kayaman,
    Sorry but I don't agree with you on verification part, Why not I can verify it ? to me default means value when I don't specify -Xms and -Xmx and by the way I was testing that program on 32 bit JRE 1.6 on Windows. I am also curious significant difference between 128MB and 870MB I saw, do you see anything obviously wrong ?That spec is outdated. Since Java 6 update 18 (Sun/Oracle implementation) the default maximum heap space is calculated based on total memory availability, but never more than 1GB on 32 bits JVMs / client VMs. On a 64 bits server VM the default can go as high as 32gb.
    The best way to verify ANYTHING is to address multiple sources of information and especially those produced by the source, not some page you find on the big bad internet. Even wikipedia is a whole lot better than any random internet site IMO. That's common sense, I can't believe you put much thought into it that you have to ask in a forum.

Maybe you are looking for

  • IPod formatted for windows, connected to mac accidentally

    I have an iPod video, 30GB. I formatted it for use with my windows laptop. Then, my mother hooked it up to her macbook pro. No syncing took place and it didn't show up in iTunes. However, now neither machine will show the iPod in iTunes. The windows

  • Need iPhoto 8 or 9 for older iMac

    Installed a copy of Snow Leopard on my mother-in-law's 2007 computer, but had to wipe the HD, which as corrupted to do so.  I already tried to use her older bundled software to custom install the iPhoto software, but no luck.  The install program giv

  • FPGA target visible in MAX but not in LabVIEW

    Hey! I recently installed a RIO device. Before installing the hardware, i installed FPGA module & RIO 3.0 as directed. Now i can see the device in measurement & automation explorer, but its not in 'Add targets & devices' list. It says 'No devices fou

  • Proxy-2-JMS Scenario: more than 10 additional JMS properties possible

    Hi @all, we're implementing a Proxy-2-JMS-Scenario. The JMS reciever side needs unfortunalety more than 10 additional JMS properties. In XI/PI the maximum number of additional JMS properties is 10. Do somebody know a good workaround in PI how to deal

  • Is it safe to re-apply a combo update?

    Had flaky problems with my dual 1.8 G5 a couple days ago, and wound up doing an archive and install of Leopard from my 10.5.4 disk. When I applied the 10.5.8 combo update, the installation hung for a very long time, such that I used the power button