[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tsik-dev
Subject:    RE: Using SAAJ with TSIK
From:       "Granqvist, Hans" <hgranqvist () verisign ! com>
Date:       2005-10-27 18:13:46
Message-ID: E9616AD132F1464BB96EBBFC4F1F3355957AA1 () MOU1WNEXMB02 ! vcorp ! ad ! vrsn ! com
[Download RAW message or body]

Try the Signer.signInPlace() call?
 
Hans
 



________________________________

	From: Bradley Ward [mailto:bward@coindata.com] 
	Sent: Thursday, October 27, 2005 11:03 AM
	To: tsik-dev@ws.apache.org
	Subject: Using SAAJ with TSIK
	
	

	Have any of you used TSIK along with SAAJ? I'm using the SAAJ
SOAPMessage class to construct my SOAP message. One of its components is
a SOAPBody. The SOAPBody class implements the Document interface, so it
works great with the TSIK Signer class except  for one thing... the
Signer.sign() method apparently creates a new Document instance, signs
it, then returns the new document, not the original one. So I no longer
have a SOAPBody instance that I can continue to use, and I don't see any
way of sticking the Document returned by Signer.sign() back into the
SOAPBody instance.  

	 

	Any ideas? Any insight into why the Signer.sign() method has to
return a brand new document instead of signing the existing document in
place would also be of interest.

	 

	Thanks,

	 

	Brad

	 

	Bradley Ward

	Coin Data, LLC

	 

	 


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=690501118-27102005><FONT face=Arial 
color=#0000ff size=2>Try the <FONT 
face="Courier New">Signer.signInPlace()</FONT> call?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=690501118-27102005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=690501118-27102005><FONT face=Arial 
color=#0000ff size=2>Hans</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=690501118-27102005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><FONT face=Arial color=#0000ff 
size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> Bradley Ward [mailto:bward@coindata.com] 
  <BR><B>Sent:</B> Thursday, October 27, 2005 11:03 AM<BR><B>To:</B> 
  tsik-dev@ws.apache.org<BR><B>Subject:</B> Using SAAJ with 
  TSIK<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Have any of you used TSIK along 
  with SAAJ? I&#8217;m using the SAAJ SOAPMessage class to construct my SOAP message. 
  One of its components is a SOAPBody. The SOAPBody class implements the 
  Document interface, so it works great with the TSIK Signer class except&nbsp; 
  for one thing&#8230; the Signer.sign() method apparently creates a new Document 
  instance, signs it, then returns the new document, not the original one. So I 
  no longer have a SOAPBody instance that I can continue to use, and I don&#8217;t see 
  any way of sticking the Document returned by Signer.sign() back into the 
  SOAPBody instance.&nbsp; <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Any ideas? Any insight into why 
  the Signer.sign() method has to return a brand new document instead of signing 
  the existing document in place would also be of 
  interest.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks,</SPAN></FONT><o:p></o:p></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Brad</SPAN></FONT><o:p></o:p></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Bradley 
  Ward</SPAN></FONT><o:p></o:p></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Coin Data, 
  LLC</SPAN></FONT><o:p></o:p></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;</SPAN><o:p></o:p></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic