BUG Community

Welcome! Log In

Forums Applications Communicating with Web Services over a network using a BUG App

Subscribe to Communicating with Web Services over a network using a BUG App  22 posts, 11 voices , Tagged: web Service network BUG app

Log in to reply to this topic
 
Aug 13, 2010 10:57am
User_img_not_found_01_med Diran 10 posts

Hello everyone,

 

I’m trying to develop a web service client within a bug application which would communicate to a web service via an internet connection. Now, I’ve been able to establish the actual connection to the internet. However, as I am not very familiar with Eclipse, I was wondering if:

1. Web service clients can be integrated within a BUG app

2. There are any tutorials that uses the BUG to communicate to a web service

3. If all else fails, any code which might relate to using web services with a BUG

 

Best,

Diran

Aug 16, 2010 11:06am
Medium Bug Labs team jconnolly 285 posts

There are many example apps that do this.  I prefer using Apache’s httpclient (which I believe is what is used for motherbugtweetNtwitch).

There are also others:

http://www.buglabs.net/applications/SimpleRESTClient

Aug 20, 2010 9:49am
User_img_not_found_01_med Diran 10 posts

Hey jconnolly,

Thanks for answering so many of my questions (and you can bet there are loads to come, so don’t go anywhere ;)).

I did some searches around BUG apps as well as on the BUG Community and it seems that most of the Web Services are written as a RESTful-WS. However, I am concerned about dealing with SOAP-WS. What I ultimately would like to do is to create a SOAP client from a WSDL and call the WS henceforth, within a BUG app of course.

I’d appreciate any insight.

Diran

 

Mar 11, 2011 7:10am
Medium livercool 38 posts

Hi Diran,

I too want to cosume a SOAP web service from the bug sdk. So far I used which is part of the JDK 1.5 + in the bin directory, you’ll find a util called wsimport.exe.

I use Windows Vista, so from my command prompt I execute wsimport with all the param required (see http://www.codeproject.com/KB/java/edujini_webservice_java.aspx for info) to generate the java client proxy.

I personally incorporated these java classes into my bug app, but I’m facing some issues like this one:

Exception in thread “2f1076bf-9515-4a5f-ab77-8bc5b35e6b6b” java.lang.NoClassDefFoundError: ServerServiceProxy/Service1
at ServerServiceProxy.Service1Client.SavePicture(Service1Client.java:8)
at cameramotionsensor.SendPicture.run(SendPicture.java:55)
at java.lang.Thread.run(Thread.java:636)

Any clues anyone? John?

Thanks in advance for that.

Mar 11, 2011 10:18am
Medium Bug Labs team jconnolly 285 posts

Hi Livercool, can you paste some code?  Specifically line 8 of Service1Client.java (and surrounding) and perhaps SendPicture.java at line 55 (and surrounding)


at ServerServiceProxy.Service1Client.SavePicture(Service1Client.java:8)
at cameramotionsensor.SendPicture.run(SendPicture.java:55)
at java.lang.Thread.run(Thread.java:636)

Mar 11, 2011 10:30am
Medium livercool 38 posts

created on: 03/11/11

 

created on: 03/11/11

Mar 11, 2011 10:32am
Medium livercool 38 posts

created on: 03/11/11

Mar 11, 2011 10:56am
Medium livercool 38 posts

I think openjdk does not have the following lib:

  • import javax.xml.ws.Service;
  • import javax.xml.ws.WebEndpoint;
  • import javax.xml.ws.WebServiceClient;
  • import javax.xml.ws.WebServiceFeature;

Any suggestions?

Mar 11, 2011 11:05am
Medium Bug Labs team jconnolly 285 posts

It does indeed:

 

root@jconnolly-bug20:~# zipinfo /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar | grep javax | grep xml

...

rw——    1.0 fat      498 b stor 24-Feb-11 16:10 javax/xml/ws/WebEndpoint.class

rw——    1.0 fat     6747 b stor 24-Feb-11 16:10 javax/xml/ws/Service.class

...
You’ll need to add javax.xml.ws to your Import-Package list in your manifest.

 

Mar 11, 2011 11:19am
Medium livercool 38 posts

Fixed few missing packages, but the following I don’t know:

Package ‘com.sun.xml.internal.ws.api.message’ is not imported by bundle soapClientTest2 [26], nor is there any bundle that exports package ‘com.sun.xml.internal.ws.api.message’. However, the class ‘com.sun.xml.internal.ws.api.message.Header’ is available from the system class loader. There are two fixes: 1) Add package ‘com.sun.xml.internal.ws.api.message’ to the ‘org.osgi.framework.system.packages.extra’ property and modify bundle soapClientTest2 [26] to import this package; this causes the system bundle to export class path packages. 2) Add package ‘com.sun.xml.internal.ws.api.message’ to the ‘org.osgi.framework.bootdelegation’ property; a library or VM bug can cause classes to be loaded by the wrong class loader. The first approach is preferable for preserving modularity.

Mar 11, 2011 11:54am
Medium livercool 38 posts

Thanks to jconnolly for the fix:

echo “org.osgi.framework.bootdelegation=com.sun.xml.internal.ws.api.message” >> /usr/share/java/conf/config.properties

and restart felix:

/etc/init.d/felix restart && tail -f /var/log/felix.log

Jun 28, 2012 2:23am
User_img_not_found_03_med louis 38 posts

http://www.louisvuittonusauks.co.uk/ louis vuitton bags

http://www.louisvuittonpurses-outlets.net/ louis vuitton Handbags Outlet

http://www.greatlouisvuittonbags.com/ louis vuitton purses

http://www.louisvuittonpursebags.net/ Louis Vuitton Purses

http://www.louisvuittononlineshops.org/ Cheap Louis Vuitton

http://www.officiallouisvuittonzone.net/ louis vuitton outlet

http://www.hermesoutletus.org/ hermes Purses

http://www.cheap-suprashoes.org/ cheap supra shoes

Jun 29, 2012 10:38pm
User_img_not_found_04_med huang 76 posts

http://www.officiallouisvuittonzone.net/ louis vuitton outlet
http://www.hermesoutletusa.org/ hermes bags
http://www.cheap-suprashoes.org/ supra shoes
http://www.louisvuittonusauks.co.uk/ Louis Vuitton UK
http://www.louisvuittonpurses-outlets.net/ louis vuitton handbags
http://www.greatlouisvuittonbags.com/ louis vuitton purses
http://www.louisvuittonpursebags.net/ Louis Vuitton Purses
http://www.louisvuittononlineshops.org/ Louis Vuitton Outlet Online

Jul 19, 2012 4:10am
User_img_not_found_05_med xiao123 35 posts

We supply a wide range of NFL Jerseys, NHL Jerseys, NBA jerseys, NCAA Jerseys of different teams. We can provide relatively low price and superb quality for the Wholesael Jerseys and Authentic NFL Jerseys, along with the Custom Jerseys of men, women and kids. Excellent and latest design will be more suitable for you to wear. It will be very exciting when you take part in the game by wearing what they are wearing on the field. Welcome to our shop!

Aug 14, 2012 1:55am
User_img_not_found_06_med rubing 103 posts

Isn’t it funny how we www.coachfactorystoreec.com/ Coach Factory Store always want what we can’t have? The girl with the round and pert backside wishes that her rear were 5 times smaller. Meanwhile, the girl with the non existent posterior wishes to achieve a larger butt. Well, if the grass is greener on the other side, just water yours! If you’ve got a small behind, you can create the illusion of a larger one with butt enhancing jeans. Here’s how to do it. Look for light weight denim – This material is very stiff and heavy. If you try to stuff a flat butt into denim jeans, it will only create a flatter looking behind. A little stretch goes a long way – Your butt enhancing jeans should additionally contain some stretch. A mixture of 98 percent cotton and 2 percent lycra is best. This combination of lycra and cotton, especially when it’s in a nice tight-weave fabric that’s fitted through the hip and thigh area will help lift your buttocks. Too much lycra and your jeans may start to ripple like a pair of leggings. If there’s not enough cotton content, there won’t be enough structure to hold you up. It’s all in the pockets – The most effective trick for creating the illusion of a bigger butt is to choose jeans with flap pockets. The added bulk of the flap will enhance and add dimension to your tiny tush. True Religion is notoriously famous for their flap pocket designs. You can also try Hudson, Rock & Republic, Frankie B and Paige for addition flap pocket styles. Pocket placement – If you’re not a fan of flap pockets, or if you’ve already bought too many of them, you can also try denim with regular pockets. Be sure to aim for a pair with smaller pockets that sit higher and this will help make your rear look lifted. Cut is also important – Look for jeans with a slight tapering at www.coachfactoryonliness.com/ Coach Factory Online the knee, such as a straight leg or skinny style. This cut will make your bum look a bit larger in comparison to the rest of your body. Great styles to try are True Religion Billy, Julie or Stella, Siwy Harmah or Rose, and Hudson Emily or Paige. How low can you go – Actually, you don’t want to go too low when it comes to the jean rise. The goal is to project more, not less. A pair of low rise denim will only reduce the size of your rear. Instead, opt for a pair with a medium rise. Color me right – Since dark colors minimize, dark denim and indigo will create a slimming effect. You do not want this kind of effect on your barely there behind! Try to find light colored or medium blue denim. Grey is very flattering and will also work. Like a great bra, butt enhancing jeans can also lift and www.coachfactoryoutletusa.com/ Coach Factory Outlet separate what little you have. So it wasn’t in your genes to have a nice, round bottom. Big deal. Be happy with what you’ve got and just improvise!

Oct 24, 2012 1:54am
User_img_not_found_01_med qazqazqaz 469 posts

As a perfect combination of classic and modern fashion,Coach Outlet Online Julia Bags can show the customers'unique personality.Tiffany UK grabbed the globe, stands out as the celeb on their favorite stars luxury type, granted an innovative simple move the pavement luxury, complete with luxury.In terms of the quality and superior design that make more and more customers are satisfied to Coach Factory Online.Welcome!hat experts claim Coach Outlet Online shopping is in the changes they are available in.As long as you open our Coach Factory Outlet webpage, you will view various Coach New Arrivals which are the most popular also the most fashionable in this year.On the date when the Louis Vuitton UK on sale, all people will pour into the stores. At this time, it on the booths will be wiped out, and only one or two days the seller will declare that there is no stock anymore.

Oct 24, 2012 4:17am
User_img_not_found_01_med qazqazqaz 469 posts

Remember that the right accessories can enhance your alluring look with your Canada Goose Parkas Outlet.Baggy, ovoid shaped Canada Goose Jackets Outlet that are rounded around the shoulders look fabulous and can be a perfect match for you.This excellent conviction so that you class gets to amateur Canada Goose Outlet In a number of Parka, for example Young Canada Goose affordable Cardigan.Luxury has always been synonymous with fur and leather and this year a faux fur Canada Goose Jackets Outlet will surely be the key piece of your wardrobe.

Oct 31, 2012 1:55am
User_img_not_found_03_med shanggu 469 posts

<a href=”http://www.canadagoosecanadaoutlet.com/”>Canada Goose Outlet</a> http://www.canadagoosecanadaoutlet.com/

<a href=”http://www.canadagoosecanadaoutlet.com/”>Canada Goose Jackets Sale</a> http://www.canadagoosecanadaoutlet.com/

<a href=”http://www.canadagoosecanadaoutlet.com/”>Canada Goose Jackets</a> http://www.canadagoosecanadaoutlet.com/

<a href=”http://www.canada-goosejackets2012.com/”>Canada Goose Jackets</a> http://www.canada-goosejackets2012.com/

<a href=”http://www.canada-goosejackets2012.com/”>Canada Goose Jacket sale</a> http://www.canada-goosejackets2012.com/

<a href=”http://www.canada-goosejackets2012.com/”>Canada Goose Outlet</a> http://www.canada-goosejackets2012.com/

<a href=”http://www.northfaceoutletlocationssale.com/”>North Face Outlet</a> http://www.northfaceoutletlocationssale.com/

<a href=”http://www.northfaceoutletlocationssale.com/”>North Face Outlet Locations</a> http://www.northfaceoutletlocationssale.com/

Nov 2, 2012 1:48am
User_img_not_found_03_med shanggu 469 posts

Canada Goose Outlet http://www.canadagoosecanadaoutlet.com/
Canada Goose Jackets Sale http://www.canadagoosecanadaoutlet.com/
Canada Goose Jackets http://www.canadagoosecanadaoutlet.com/
Canada Goose Jackets http://www.canada-goosejackets2012.com/
Canada Goose Jacket sale http://www.canada-goosejackets2012.com/
Canada Goose Outlet http://www.canada-goosejackets2012.com/
North Face Outlet http://www.northfaceoutletlocationssale.com/
North Face Outlet Locations http://www.northfaceoutletlocationssale.com/

Nov 6, 2012 9:58pm
User_img_not_found_01_med yiyi 74 posts

cheap louis vuitton
handbags

RNCHurricane Could Turn GOP Convention Into A ‘Disaster’By AMY
BINGHAMAug. 2012 Hurricane Isaac, currently a tropical storm brewing southeast
of of louis vuitton
alma
of Puerto Rico, is on track to hit Florida the day that Mitt Romney
and 50,000 Republican delegates, journalists, protestors protestors cheap authentic air
jordans
protestors and guests descend on Tampa for the Republican
National it is too early to accurately predict the storm’s path, path, louis vuitton monogram
path, ABC meteorologist Max Golembo said it will hit southern Whether it will
skim the east coast near Miami or or cheap replica handbags or crash
head-on into Tampa, is still up in the way you take it, it’s going to be a wind
wind knockoff designer
handbags
wind and rain event in Tampa,” Golembo said. “We don’t if
it’s going to be damaging to Tampa, cancelling the the knockoff designer handbags the
convention or just delaying it.”As of this morning, the possible scenario is
that Hurricane Isaac stays on the western western replica louis vuitton
handbags
western track, skating over the Caribbean Sea south of Haiti,
the primarily flat landscape of western Cuba into the Gulf Gulf louis vuitton alma Gulf
of Mexico then curving east and hitting Tampa dead-on.”Tampa just as vulnerable
as New Orleans was in the sense sense cheap designer handbags sense
that the water will funnel into the bay area from the storm surge which will
flood completely the whole whole louis vuitton monogram
whole entire city of Tampa,” Golembo said referring to Hurricane that devastated
New Orleans in 2005.”It would be a disaster disaster

louis vuitton factory
outlet

disaster in the Tampa area,” Golembo said.But Tampa Mayor
Buckhorn downplayed any serious threat to the convention.”Come on down,” down,”
cheap real jordans
down,” Buckhorn said. “The event is going to take place, going to be a great
event and we’re looking forward forward

louis vuitton
outlet

forward to having you.”He said Isaac was still 2,500 miles the
Florida

Mar 1, 2013 1:04pm
User_img_not_found_04_med shankar11 62 posts

tanks for this packers and movers in mumbai and packers and movers in nashik  and packers and movers in bangalore and packers and movers and packers and movers mumbai Packers Movers Airoli 

 

<table cellspacing="0" border="0" cellpadding="0" align="center" width="978"><tbody><tr><td height="320" valign="top" width="267">
Packers Movers Chembur

Packers Movers Andheri

Packers Movers Thane

Packers Movers malad
Packers Movers mulund
</td></tr></tbody></table>

Apr 7, 2013 10:17pm
User_img_not_found_01_med yiyi 74 posts

the Alliance for Women in Media and honor “programming created women, by women and about women, as well as individuals individuals

cheap Ralph Lauren

individuals who have made exemplarity contributions to the industry.”The judging reported receiving a record number of entries this year and and Christian Louboutin Outlet and will present its awards in May in Beverly Hills.CLICK to return to The Blotter homepage.Dear ABC News Fixer: Help! Help! cheap polo shirts Help! AT&T Changed My Cellphone Plan and My Bill Has Ivana: We Took Your Story to the Office of AT&T’s AT&T’s

cheap polo shirts

AT&T’s PresidentBy STEPHANIE ZIMMERMANNFeb. 26, 2013 — Dear ABC News Please help! On Oct. 30, I called AT&T to change change

cheap polo shirts

change the name on our family’s multiple cellphone account from husband’s name to my name, to get an employee discount discount cheap Ralph Lauren discount through my new workplace.I specifically requested that no changes made to any of our text messaging, minutes or data data cheap polo Ralph Lauren data plans on our four phone lines. I was assured would remain exactly the same. We were simply changing the the replica Christian Louboutin the billing responsibility from Robert Del Real to Ivana Del following day, one of our phone lines received a text text knock off handbags text message indicating that it was over the messaging limit.I AT&T and was informed that the person who transferred the the cheap louboutins the billing

Log in to reply to this topic
Forums Applications Communicating with Web Services over a network using a BUG App

Powered by Community Engine