Hi Uday,
the response string, like the request string, is encoded: this means
that if you dont use the AdapterAxisClient or the AdapterSOAPProxy you
have to decode it, before using it.
If you created you client with Axis, starting from the Spago WSDL, this
operation is done automatically by Axis.
The second problem is that the response contains also the encoding of
all "Accented" characters because if the XML response contains any of
these characters,the XML would be invalid.
If this is a problem, or it's not necessary in your case, you can
remove the file xhtml-lat1.ent from the configuration. This is the file
that is included in all Spago SOAP responses. If removing the file
produce some problems, simply keep it empty.
Best Regards
|
Gianfranco
Boccalon
______________________________________
|
Spago&Spagic
Project Leader
______________________________________
Senior Consultant
Architectures & Consulting
Research & Innovation Division
|
|
Engineering
Ingegneria
Informatica S.p.A.
Corso
Stati Uniti, 23/C - 35127 Padova - Italy
Phone: +39-049.8692511 Fax:+39-049.8692566
Mobile: +39-3357813507
www.eng.it
www.spagoworld.org
|
|
|
|
Uday-A Kumar ha scritto:
Hi Boccalon,
We are able to see the response but
it is in default format as below
<?xml version="1.0"
encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:serviceResponse
xmlns:ns1="http://tempuri.org/it.eng.spago.dispatching.soapchannel.AdapterSOAP"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return
xsi:type="xsd:string"><?xml
version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE RESPONSE
[<!--
Portions (C) International Organization for Standardization 1986
Permission to copy
in any form is granted for use with
conforming SGML
systems and applications as defined in
ISO 8879, provided
this notice is included in all copies.
-->
<!-- Character entity set.
Typical
invocation:
<!ENTITY % HTMLlat1
PUBLIC
"-//W3C//ENTITIES
Latin 1 for XHTML//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
%HTMLlat1;
-->
<!ENTITY nbsp
"&#160;">
<!-- no-break space = non-breaking space,
U+00A0 ISOnum -->
<!ENTITY iexcl
"&#161;">
<!-- inverted exclamation mark, U+00A1 ISOnum -->
<!ENTITY cent
"&#162;">
<!-- cent sign, U+00A2 ISOnum -->
<!ENTITY pound
"&#163;">
<!-- pound sign, U+00A3 ISOnum -->
<!ENTITY curren
"&#164;">
<!-- currency sign, U+00A4 ISOnum -->
<!ENTITY yen
"&#165;">
<!-- yen sign = yuan sign, U+00A5 ISOnum -->
<!ENTITY brvbar
"&#166;">
<!-- broken bar = broken vertical bar,
U+00A6 ISOnum -->
<!ENTITY sect
"&#167;">
<!-- section sign, U+00A7 ISOnum -->
<!ENTITY uml
"&#168;">
<!-- diaeresis = spacing diaeresis,
U+00A8 ISOdia -->
<!ENTITY copy
"&#169;">
<!-- copyright sign, U+00A9 ISOnum -->
<!ENTITY ordf
"&#170;">
<!-- feminine ordinal indicator, U+00AA ISOnum -->
<!ENTITY laquo
"&#171;">
<!-- left-pointing double angle quotation mark
= left pointing guillemet, U+00AB ISOnum -->
<!ENTITY not
"&#172;">
<!-- not sign = discretionary hyphen,
U+00AC ISOnum -->
<!ENTITY shy
"&#173;">
<!-- soft hyphen = discretionary hyphen,
U+00AD ISOnum -->
<!ENTITY reg
"&#174;">
<!-- registered sign = registered trade mark sign,
U+00AE ISOnum -->
<!ENTITY macr
"&#175;">
<!-- macron = spacing macron = overline
= APL overbar, U+00AF ISOdia -->
<!ENTITY deg
"&#176;">
<!-- degree sign, U+00B0 ISOnum -->
<!ENTITY plusmn
"&#177;">
<!-- plus-minus sign = plus-or-minus sign,
U+00B1 ISOnum -->
<!ENTITY sup2
"&#178;">
<!-- superscript two = superscript digit two
= squared, U+00B2 ISOnum -->
<!ENTITY sup3
"&#179;">
<!-- superscript three = superscript digit three
= cubed, U+00B3 ISOnum -->
<!ENTITY acute
"&#180;">
<!-- acute accent = spacing acute,
U+00B4 ISOdia -->
<!ENTITY micro
"&#181;">
<!-- micro sign, U+00B5 ISOnum -->
<!ENTITY para
"&#182;">
<!-- pilcrow sign = paragraph sign,
U+00B6 ISOnum -->
<!ENTITY middot
"&#183;">
<!-- middle dot = Georgian comma
= Greek middle dot, U+00B7 ISOnum -->
<!ENTITY cedil
"&#184;">
<!-- cedilla = spacing cedilla, U+00B8 ISOdia -->
<!ENTITY sup1
"&#185;">
<!-- superscript digit one,
U+00B9 ISOnum -->
<!ENTITY ordm
"&#186;">
<!-- masculine ordinal indicator,
U+00BA ISOnum -->
<!ENTITY raquo
"&#187;">
<!-- right-pointing double angle quotation mark
= right pointing guillemet, U+00BB ISOnum -->
<!ENTITY frac14
"&#188;">
<!-- vulgar fraction one quarter
= fraction one quarter, U+00BC ISOnum -->
<!ENTITY frac12
"&#189;">
<!-- vulgar fraction one half
= fraction one half, U+00BD ISOnum -->
<!ENTITY frac34
"&#190;">
<!-- vulgar fraction three quarters
= fraction three quarters, U+00BE ISOnum -->
<!ENTITY iquest
"&#191;">
<!-- inverted question mark
= turned question mark, U+00BF ISOnum -->
<!ENTITY Agrave
"&#192;">
<!-- latin capital letter A with grave
= latin capital letter A grave,
U+00C0 ISOlat1 -->
<!ENTITY Aacute
"&#193;">
<!-- latin capital letter A with acute,
U+00C1 ISOlat1 -->
<!ENTITY Acirc
"&#194;">
<!-- latin capital letter A with circumflex,
U+00C2 ISOlat1 -->
<!ENTITY Atilde
"&#195;">
<!-- latin capital letter A with tilde,
U+00C3 ISOlat1 -->
<!ENTITY Auml
"&#196;">
<!-- latin capital letter A with diaeresis,
U+00C4 ISOlat1 -->
<!ENTITY Aring
"&#197;">
<!-- latin capital letter A with ring above
= latin capital letter A ring,
U+00C5 ISOlat1 -->
<!ENTITY AElig
"&#198;">
<!-- latin capital letter AE
= latin capital ligature AE,
U+00C6 ISOlat1 -->
<!ENTITY Ccedil
"&#199;">
<!-- latin capital letter C with cedilla,
U+00C7 ISOlat1 -->
<!ENTITY Egrave
"&#200;">
<!-- latin capital letter E with grave,
U+00C8 ISOlat1 -->
<!ENTITY Eacute
"&#201;">
<!-- latin capital letter E with acute,
U+00C9 ISOlat1 -->
<!ENTITY Ecirc
"&#202;">
<!-- latin capital letter E with circumflex,
U+00CA ISOlat1 -->
<!ENTITY Euml
"&#203;">
<!-- latin capital letter E with diaeresis,
U+00CB ISOlat1 -->
<!ENTITY Igrave
"&#204;">
<!-- latin capital letter I with grave,
U+00CC ISOlat1 -->
<!ENTITY Iacute
"&#205;">
<!-- latin capital letter I with acute,
U+00CD ISOlat1 -->
<!ENTITY Icirc
"&#206;">
<!-- latin capital letter I with circumflex,
U+00CE ISOlat1 -->
<!ENTITY Iuml
"&#207;">
<!-- latin capital letter I with diaeresis,
U+00CF ISOlat1 -->
<!ENTITY ETH
"&#208;">
<!-- latin capital letter ETH, U+00D0 ISOlat1 -->
<!ENTITY Ntilde
"&#209;">
<!-- latin capital letter N with tilde,
U+00D1 ISOlat1 -->
<!ENTITY Ograve
"&#210;">
<!-- latin capital letter O with grave,
U+00D2 ISOlat1 -->
<!ENTITY Oacute
"&#211;">
<!-- latin capital letter O with acute,
U+00D3 ISOlat1 -->
<!ENTITY Ocirc
"&#212;">
<!-- latin capital letter O with circumflex,
U+00D4 ISOlat1 -->
<!ENTITY Otilde
"&#213;">
<!-- latin capital letter O with tilde,
U+00D5 ISOlat1 -->
<!ENTITY Ouml
"&#214;">
<!-- latin capital letter O with diaeresis,
U+00D6 ISOlat1 -->
<!ENTITY times
"&#215;">
<!-- multiplication sign, U+00D7 ISOnum -->
<!ENTITY Oslash
"&#216;">
<!-- latin capital letter O with stroke
= latin capital letter O slash,
U+00D8 ISOlat1 -->
<!ENTITY Ugrave
"&#217;">
<!-- latin capital letter U with grave,
U+00D9 ISOlat1 -->
<!ENTITY Uacute
"&#218;">
<!-- latin capital letter U with acute,
U+00DA ISOlat1 -->
<!ENTITY Ucirc
"&#219;">
<!-- latin capital letter U with circumflex,
U+00DB ISOlat1 -->
<!ENTITY Uuml
"&#220;">
<!-- latin capital letter U with diaeresis,
U+00DC ISOlat1 -->
<!ENTITY Yacute
"&#221;">
<!-- latin capital letter Y with acute,
U+00DD ISOlat1 -->
<!ENTITY THORN
"&#222;">
<!-- latin capital letter THORN,
U+00DE ISOlat1 -->
<!ENTITY szlig
"&#223;">
<!-- latin small letter sharp s = ess-zed,
U+00DF ISOlat1 -->
<!ENTITY agrave
"&#224;">
<!-- latin small letter a with grave
= latin small letter a grave,
U+00E0 ISOlat1 -->
<!ENTITY aacute
"&#225;">
<!-- latin small letter a with acute,
U+00E1 ISOlat1 -->
<!ENTITY acirc
"&#226;">
<!-- latin small letter a with circumflex,
U+00E2 ISOlat1 -->
<!ENTITY atilde
"&#227;">
<!-- latin small letter a with tilde,
U+00E3 ISOlat1 -->
<!ENTITY auml
"&#228;">
<!-- latin small letter a with diaeresis,
U+00E4 ISOlat1 -->
<!ENTITY aring
"&#229;">
<!-- latin small letter a with ring above
= latin small letter a ring,
U+00E5 ISOlat1 -->
<!ENTITY aelig
"&#230;">
<!-- latin small letter ae
= latin small ligature ae, U+00E6 ISOlat1 -->
<!ENTITY ccedil
"&#231;">
<!-- latin small letter c with cedilla,
U+00E7 ISOlat1 -->
<!ENTITY egrave
"&#232;">
<!-- latin small letter e with grave,
U+00E8 ISOlat1 -->
<!ENTITY eacute
"&#233;">
<!-- latin small letter e with acute,
U+00E9 ISOlat1 -->
<!ENTITY ecirc
"&#234;">
<!-- latin small letter e with circumflex,
U+00EA ISOlat1 -->
<!ENTITY euml
"&#235;">
<!-- latin small letter e with diaeresis,
U+00EB ISOlat1 -->
<!ENTITY igrave
"&#236;">
<!-- latin small letter i with grave,
U+00EC ISOlat1 -->
<!ENTITY iacute
"&#237;">
<!-- latin small letter i with acute,
U+00ED ISOlat1 -->
<!ENTITY icirc
"&#238;">
<!-- latin small letter i with circumflex,
U+00EE ISOlat1 -->
<!ENTITY iuml
"&#239;">
<!-- latin small letter i with diaeresis,
U+00EF ISOlat1 -->
<!ENTITY eth
"&#240;">
<!-- latin small letter eth, U+00F0 ISOlat1 -->
<!ENTITY ntilde
"&#241;">
<!-- latin small letter n with tilde,
U+00F1 ISOlat1 -->
<!ENTITY ograve
"&#242;">
<!-- latin small letter o with grave,
U+00F2 ISOlat1 -->
<!ENTITY oacute
"&#243;">
<!-- latin small letter o with acute,
U+00F3 ISOlat1 -->
<!ENTITY ocirc
"&#244;">
<!-- latin small letter o with circumflex,
U+00F4 ISOlat1 -->
<!ENTITY otilde
"&#245;">
<!-- latin small letter o with tilde,
U+00F5 ISOlat1 -->
<!ENTITY ouml
"&#246;">
<!-- latin small letter o with diaeresis,
U+00F6 ISOlat1 -->
<!ENTITY divide
"&#247;">
<!-- division sign, U+00F7 ISOnum -->
<!ENTITY oslash
"&#248;">
<!-- latin small letter o with stroke,
= latin small letter o slash,
U+00F8 ISOlat1 -->
<!ENTITY ugrave
"&#249;">
<!-- latin small letter u with grave,
U+00F9 ISOlat1 -->
<!ENTITY uacute
"&#250;">
<!-- latin small letter u with acute,
U+00FA ISOlat1 -->
<!ENTITY ucirc
"&#251;">
<!-- latin small letter u with circumflex,
U+00FB ISOlat1 -->
<!ENTITY uuml
"&#252;">
<!-- latin small letter u with diaeresis,
U+00FC ISOlat1 -->
<!ENTITY yacute
"&#253;">
<!-- latin small letter y with acute,
U+00FD ISOlat1 -->
<!ENTITY thorn
"&#254;">
<!-- latin small letter thorn with,
U+00FE ISOlat1 -->
<!ENTITY yuml
"&#255;">
<!-- latin small letter y with diaeresis,
U+00FF ISOlat1 -->
]>
<RESPONSE><SERVICE_RESPONSE><TEST_MODULE
Age="Age"
Name="Name"/></SERVICE_RESPONSE><ERRORS/></RESPONSE></return>
</ns1:serviceResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
How do we send the formatted
string
to ASP application (means without having special characters like ">","<"
etc)
Thanks in advance
Thanks and Regards
Uday Kumar
OBTS TechnoFunctional Analyst
Avenue Marnixlaan, 13
1000 Brussels
Phone: +32 (0)2 551 6056
**************************************************************************************
This mail is transmitted to you on behalf of Tata Consultancy Services.
Diese Post wird Ihnen im Namen der Tata Consultancy Services
ubermittelt
**************************************************************************************
To get a response from a Spago Service invoked as a
Web
service, you dont need to configure any publisher: the response is
already
in XML so there is no need for any conversion.
I saw that the service was invoked and that it produces a response: you
should see this response as the response of the Spago Web Service.
Regards
Gianfranco
Boccalon
______________________________________
|
|

Spago&Spagic Project Leader
______________________________________
Senior Consultant
Architectures & Consulting
Research & Innovation Division
|
|
Engineering
Ingegneria
Informatica S.p.A.
Corso Stati Uniti,
23/C - 35127
Padova - Italy
Phone: +39-049.8692511 Fax:+39-049.8692566
Mobile: +39-3357813507
www.eng.it
www.spagoworld.org
|
|
|
|
Uday-A Kumar ha scritto:
Hi Boccalon,
Yes I am able to see the response.It is as below
080326 05:17:28 Spago DEBUG
ModuleCoordinator::service: serviceResponse
<?xml version="1.0" encoding="ISO-8859-1"?>
<SERVICE_RESPONSE>
<TEST_MODULE Age="Age" Name="Name"/>
</SERVICE_RESPONSE>
080326 05:17:28 Spago DEBUG
AdapterSOAP::commonService: responseContainer
<?xml version="1.0" encoding="ISO-8859-1"?>
<IT.ENG.SPAGO.BASE.RESPONSECONTAINER>
<HIDDEN_ATTRIBUTES/>
<VISIBLE_ATTRIBUTES/>
<PARENT/>
</IT.ENG.SPAGO.BASE.RESPONSECONTAINER>
080326 05:17:28 Spago DEBUG
AdapterSOAP::commonService: sessionContainer
<?xml version="1.0" encoding="ISO-8859-1"?>
<SESSION_CONTAINER>
<IT.ENG.SPAGO.BASE.SESSIONCONTAINER>
<HIDDEN_ATTRIBUTES/>
<VISIBLE_ATTRIBUTES/>
<PARENT/>
</IT.ENG.SPAGO.BASE.SESSIONCONTAINER>
<PERMANENT_CONTAINER>
<SESSION_CONTAINER>
<IT.ENG.SPAGO.BASE.SESSIONCONTAINER>
<HIDDEN_ATTRIBUTES/>
<VISIBLE_ATTRIBUTES>
<ATTRIBUTE name="SPAGO_TRANSACTION_TOKEN"
value="120654824877113077467"/>
</VISIBLE_ATTRIBUTES>
<PARENT/>
</IT.ENG.SPAGO.BASE.SESSIONCONTAINER>
</SESSION_CONTAINER>
</PERMANENT_CONTAINER>
<SHARED_CONTAINER>
<SESSION_CONTAINER>
<IT.ENG.SPAGO.BASE.SESSIONCONTAINER>
<HIDDEN_ATTRIBUTES/>
<VISIBLE_ATTRIBUTES>
<ATTRIBUTE name="SPAGO_TRANSACTION_TOKEN"
value="120654824877113077467"/>
</VISIBLE_ATTRIBUTES>
<PARENT/>
</IT.ENG.SPAGO.BASE.SESSIONCONTAINER>
</SESSION_CONTAINER>
</SHARED_CONTAINER>
</SESSION_CONTAINER>
080326 05:17:28 Spago DEBUG
Publisher::getPublisher: invocato
080326 05:17:28 Spago DEBUG
Publisher::getPublisher: businessType [PAGE]
080326 05:17:28 Spago DEBUG
Publisher::getPublisher: businessName [TEST_PAGE]
080326 05:17:28 Spago WARNING
Publisher::getPublisher: mapping non trovato
080326 05:17:28 Spago WARNING
Publisher::getPublisher: mapping non trovato
080326 05:17:28 Spago WARNING
PresentationRendering::render: resources nullo
But I am not getting empty response.Could you please let me know how to
resolve the above issue.
Thanks and Regards
Uday Kumar
OBTS TechnoFunctional Analyst
Avenue Marnixlaan, 13
1000 Brussels
Phone: +32 (0)2 551 6056
**************************************************************************************
This mail is transmitted to you on behalf of Tata Consultancy Services.
Diese Post wird Ihnen im Namen der Tata Consultancy Services
ubermittelt
**************************************************************************************
Was the service executed properly ?
Can you see the service response on the Spago log ?
Uday-A Kumar ha scritto:
>
> Hi Boccalon,
>
> Thanks a lot for the help provided
>
> I am able to call the webservice using the following request and
end
> points
>
> Request:
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">
> <SOAP-ENV:Body>
> <ns2:service
> xmlns:ns2="http://tempuri.org/it.eng.spago.dispatching.soapchannel.AdapterSOAP">
> <request xsi:type="xsd:string"><SERVICE_REQUEST
> ACTION_NAME="TEST_PAGE" /></request>
> </ns2:service>
> </SOAP-ENV:Body></SOAP-ENV:Envelope>
>
> End Point: "http://localhost:7001/bfpservices/servlet/rpcrouter".
>
> But we are getting the empty response.Please let me know is we
need
to
> configure the publisher for the same ? Provide us sample if
possible
> for the soap channel.
>
> Thanks and Regards
> Uday Kumar
> OBTS TechnoFunctional Analyst
> Avenue Marnixlaan, 13
> 1000 Brussels
> Phone: +32 (0)2 551 6056
>
>
>
**************************************************************************************
> This mail is transmitted to you on behalf of Tata Consultancy
Services.
> Diese Post wird Ihnen im Namen der Tata Consultancy Services
ubermittelt
>
**************************************************************************************
>
>
> --
>
> Informationen (einschließlich Pflichtangaben) zu einzelnen,
innerhalb
> der EU tätigen Gesellschaften und Zweigniederlassungen des
Konzerns
> Deutsche Bank finden Sie unter
> _http://www.db.com/de/content/pflichtangaben.htm_.
Diese E-Mail
> enthält vertrauliche und/ oder rechtlich geschützte Informationen.
> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich
> erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die
> unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
>
> Please refer to _http://www.db.com/en/content/eu_disclosures.htm_
for
> information (including mandatory corporate particulars) on
selected
> Deutsche Bank branches and group companies registered or
incorporated
> in the European Union. This e-mail may contain confidential and/or
> privileged information. If you are not the intended recipient (or
have
> received this e-mail in error) please notify the sender
immediately
> and delete this e-mail. Any unauthorized copying, disclosure or
> distribution of the material in this e-mail is strictly forbidden.
--
*Gianfranco Boccalon*
______________________________________
<www.spagoworld.org>
Spago&Spagic Project Leader
______________________________________
Senior Consultant
Architectures & Consulting
Research & Innovation Division
*Engineering Ingegneria Informatica S.p.A.
*
Corso Stati Uniti, 23/C - 35127 Padova - Italy
Phone: +39-049.8692511 Fax:+39-049.8692566
Mobile: +39-3357813507
*www.eng.it
www.spagoworld.org*
--
Informationen (einschließlich Pflichtangaben) zu einzelnen, innerhalb
der EU tätigen Gesellschaften und Zweigniederlassungen des Konzerns
Deutsche
Bank finden Sie unter http://www.db.com/de/content/pflichtangaben.htm.
Diese E-Mail enthält vertrauliche und/ oder rechtlich geschützte
Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
erhalten haben, informieren Sie bitte sofort den Absender und
vernichten
Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe
dieser E-Mail ist nicht gestattet.
Please refer to http://www.db.com/en/content/eu_disclosures.htm
for information (including mandatory corporate particulars) on selected
Deutsche Bank branches and group companies registered or incorporated
in
the European Union. This e-mail may contain confidential and/or
privileged
information. If you are not the intended recipient (or have received
this
e-mail in error) please notify the sender immediately and delete this
e-mail.
Any unauthorized copying, disclosure or distribution of the material in
this e-mail is strictly forbidden.
--
--
|