how to invoke web service without generating a client

'sendReceive() Method - Invoking a Named Operation' tutorial was cited in an Apache mailing list discussion in 2012.

The sendReceive() Method - Invoking a Named Operation tutorial was cited in an Apache mailing list discussion in 2012.

Subject: Re: how to invoke web service without generating a client
Date: Apr. 9, 2012
Author: Jaime Hablutzel Egoavil
Source: http://mail-archives.apache.org/mod_mbox/axis-java-user
  /201204.mbox/%3CCAFxNpv9FzaD_FAtsmkEtN8ir
  =U1Q2P_tbfduOshWF4QTdnp5=A@mail.gmail.com%3E

If you have the payload you want to send as a string then use
HTTPURLConnection

Construct your payload as a string
open a connection to the endpoint
send and receive the content as a input stream
parse the received content with an xml proccesor or regex, or whatever
else

you can get a place to start here:
http://stackoverflow.com/questions/2793150
/how-to-use-java-net-urlconnection-to-fire-and-handle-http-requests

If you wan't to use a more sophisiticated way with axis2 and axiom you can
you this way to construct the payload programmatically:

/**
 * Axis2ServiceClientSendReceive.java
 * Copyright (c) 2009 by Dr. Herong Yang, herongyang.com
 * All rights reserved
 */
import java.io.PrintStream;
import java.net.URL;
import javax.xml.namespace.QName;
import org.apache.axis2.client.ServiceClient;
import org.apache.axiom.om.OMElement;
class Axis2ServiceClientSendReceive {
   public static void main(String[] args) {
...

Taken from
http://www.herongyang.com/WSDL
/Java-Axis2-141-sendReceive-Method-Invoke-Operation.html

Table of Contents

 About This Book

 Reference Citations in 2017

 Reference Citations in 2016

 Reference Citations in 2015

 Reference Citations in 2014

 Reference Citations in 2013

Reference Citations in 2012

 bikin website dalam bahasa cina dengan php

 72 sekunde kao 72 godine

 nsIConverterOutputStream handling GB2312 characters

 AbstractMethodError while calling PreparedStatement.setBinaryStream()

how to invoke web service without generating a client

 Sample program to test SSL Connection with certicates

 How to know KeyManager given a keystore

 once again: classpath and ojdbc14.jar

 12c... webtier up, Oracle managment server down

 Problems with class not found exception

 Spring Projects > Roo > Issue with Chinese characters

 Monkey Programming/Unsigned Shift Right

 Unable to get issuer certificate

 How to convert keystore (from native android project) to .p12 to use with AIR project?

 Installing JDBC drivers ojdbc14.jar

 Quickly view the threads of your blocked Ruby application with JStack

 android verify signature of file with .der public key

 Unable to install updates KB2770917 and KB2779768

 Reference Citations in 2011

 Reference Citations in 2010

 Reference Citations in 2009

 Reference Citations in 2008

 Reference Citations in 2007

 Reference Citations in 2006

 Reference Citations in 2005

 Reference Citations in 2004

 Reference Citations in 2003

 PDF Printing Version